We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 132ea98 commit 85d7e18Copy full SHA for 85d7e18
1 file changed
Source/Assert.cs
@@ -13,9 +13,8 @@ public static class Assert
13
public static void Pass() => throw new SuccessException();
14
public static void Fail() => throw new Exception();
15
16
- // TODO: use Equals instead of ==
17
- public static void AreEqual(object a, object b) { if (a != b) throw new Exception(); }
18
- public static void AreNotEqual(object a, object b) { if (a == b) throw new Exception(); }
+ public static void AreEqual(object a, object b) { if (!Equals(a, b)) throw new Exception(); }
+ public static void AreNotEqual(object a, object b) { if (Equals(a, b)) throw new Exception(); }
19
20
public static void True(bool a) { if (!a) throw new Exception(); }
21
public static void False(bool a) { if (a) throw new Exception(); }
0 commit comments