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: nsubstitute/1-Tutorial.cs
+22-28Lines changed: 22 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,4 @@
1
-
usingSystem;
2
-
usingSystem.Collections.Generic;
3
-
usingSystem.Diagnostics;
4
-
usingSystem.Linq;
5
-
usingSystem.Security.Claims;
6
-
usingSystem.Security.Principal;
7
-
usingSystem.Windows.Input;
1
+
usingSystem.Security.Principal;
8
2
usingNSubstitute;
9
3
usingNSubstitute.Core;
10
4
usingNSubstitute.Extensions;
@@ -42,7 +36,7 @@ public void CreateSubstitute_ForClass()
42
36
}
43
37
catch(CouldNotSetReturnDueToTypeMismatchExceptionex)when(ex.Message.Contains("Return values cannot be configured for non-virtual/non-abstract members"))
44
38
{
45
-
Assert.True(true,"NSubstitute only works with virtual/abstract members when substituting an actual class");
39
+
Assert.That(true,Is.True,"NSubstitute only works with virtual/abstract members when substituting an actual class");
46
40
}
47
41
}
48
42
@@ -99,8 +93,8 @@ public void CreateSubstitute_ForMultipleTypes()
0 commit comments