You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/TestFramework/Assert.cs
+9-11
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,6 @@ public static void Equal(
170
170
/// <param name="expected">The first value to compare. This is the value the tests expects.</param>
171
171
/// <param name="actual">The second value to compare. This is the value produced by the code under test.</param>
172
172
/// <param name="message"> The message to include in the exception when <paramref name="actual"/> is not equal to <paramref name="expected"/>. The message is shown in test results.</param>
173
-
/// <param name="message"> The message to include in the exception when <paramref name="actual"/> is not equal to <paramref name="expected"/>. The message is shown in test results.</param>
174
173
/// <exception cref="AssertFailedException">Thrown if <paramref name="expected"/> is not equal to <paramref name="actual"/>.</exception>
175
174
publicstaticvoidAreEqual(
176
175
intexpected,
@@ -192,7 +191,6 @@ public static void AreEqual(
192
191
/// <param name="expected">The first value to compare. This is the value the tests expects.</param>
193
192
/// <param name="actual">The second value to compare. This is the value produced by the code under test.</param>
194
193
/// <param name="message"> The message to include in the exception when <paramref name="actual"/> is not equal to <paramref name="expected"/>. The message is shown in test results.</param>
195
-
/// <param name="message"> The message to include in the exception when <paramref name="actual"/> is not equal to <paramref name="expected"/>. The message is shown in test results.</param>
196
194
/// <exception cref="AssertFailedException">Thrown if <paramref name="expected"/> is not equal to <paramref name="actual"/>.</exception>
197
195
[Obsolete("This method is deprecated and will be removed in a future version. Use the new method AreEqual.")]
198
196
publicstaticvoidEqual(
@@ -1600,7 +1598,7 @@ public static void NotSame(
1600
1598
/// <param name="value">The object the test expects to be null.</param>
1601
1599
/// <param name="message">The message to include in the exception when value is not null. The message is shown in test results.</param>
1602
1600
/// <exception cref="AssertFailedException">Thrown if value is not null.</exception>
/// Tests whether the code specified by delegate action throws exact given exception
1645
1643
/// of type <paramref name="exceptionType"/> (and not of derived type) and throws <see cref="AssertFailedException"/> if code
1646
-
/// does not throws exception or throws exception of type other than <paramref name="exceptionType"/>.
1644
+
/// does not throw exception or throws exception of type other than <paramref name="exceptionType"/>.
1647
1645
/// </summary>
1648
1646
/// <param name="exceptionType">Type of exception expected to be thrown.</param>
1649
1647
/// <param name="action">Delegate to code to be tested and which is expected to throw exception.</param>
1650
-
/// <param name="message">The message to include in the exception when action does not throws exception of type <paramref name="exceptionType"/>.</param>
1651
-
/// <exception cref="AssertFailedException">Thrown if action does not throws exception of type <paramref name="exceptionType"/>.</exception>
1648
+
/// <param name="message">The message to include in the exception when action does not throw exception of type <paramref name="exceptionType"/>.</param>
1649
+
/// <exception cref="AssertFailedException">Thrown if action does not throw exception of type <paramref name="exceptionType"/>.</exception>
1652
1650
/// <exception cref="ArgumentNullException">Thrown if <paramref name="action"/> is <see langword="null"/>.</exception>
1653
1651
publicstaticvoidThrowsException(
1654
1652
TypeexceptionType,
@@ -1688,12 +1686,12 @@ public static void ThrowsException(
1688
1686
/// <summary>
1689
1687
/// Tests whether the code specified by delegate action throws exact given exception
1690
1688
/// of type <paramref name="exceptionType"/> (and not of derived type) and throws <see cref="AssertFailedException"/> if code
1691
-
/// does not throws exception or throws exception of type other than <paramref name="exceptionType"/>.
1689
+
/// does not throw exception or throws exception of type other than <paramref name="exceptionType"/>.
1692
1690
/// </summary>
1693
1691
/// <param name="exceptionType">Type of exception expected to be thrown.</param>
1694
1692
/// <param name="action">Delegate to code to be tested and which is expected to throw exception.</param>
1695
-
/// <param name="message">The message to include in the exception when action does not throws exception of type <paramref name="exceptionType"/>.</param>
1696
-
/// <exception cref="AssertFailedException">Thrown if action does not throws exception of type <paramref name="exceptionType"/>.</exception>
1693
+
/// <param name="message">The message to include in the exception when action does not throw exception of type <paramref name="exceptionType"/>.</param>
1694
+
/// <exception cref="AssertFailedException">Thrown if action does not throw exception of type <paramref name="exceptionType"/>.</exception>
1697
1695
/// <exception cref="ArgumentNullException">Thrown if <paramref name="action"/> is <see langword="null"/>.</exception>
1698
1696
[Obsolete("This method is deprecated and will be removed in a future version. Use the new method ThrowsException.")]
0 commit comments