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
Assert.AreEqual(test.Expected,test.B.Equals(b2),$"Casting Obj wasn't successful for {test.Obj}");
57
-
Assert.AreEqual(test.Expected,test.B.GetHashCode().Equals(b2.GetHashCode()),$"HashCode of {test.B}({test.B.GetHashCode()}) differs from the one of {b2}(b2.GetHashCode())");
58
-
Assert.AreEqual((byte)test.B,test.B.GetHashCode(),$"HashCode of {(byte)test.B} different from expected, is {test.B.GetHashCode()}");
59
-
}
58
+
[TestMethod]
59
+
publicvoidEquals_ByteToNull()
60
+
{
61
+
byteb=78;
62
+
objectobj=null;
60
63
61
-
Assert.AreEqual(test.Expected,test.B.Equals(test.Obj),$"Equality test between {test.B} and {test.Obj} failed");
62
-
}
64
+
OutputHelper.WriteLine($"Testing combination {b} and {obj}");
65
+
66
+
Assert.AreNotEqual(b,obj);
67
+
}
68
+
69
+
[TestMethod]
70
+
publicvoidEquals_ByteToString()
71
+
{
72
+
byteb=78;
73
+
objectobj="78";
74
+
75
+
OutputHelper.WriteLine($"Testing combination {b} and {obj}");
0 commit comments