Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- class TestClass
- {
- public override bool Equals(object obj)
- {
- return true;
- }
- }
- [TestMethod]
- public void TestMethod1()
- {
- TestClass t = new TestClass ();
- Assert.AreEqual (t, null); // fails
- Assert.IsTrue (t.Equals (null)); // passes
- }
Add Comment
Please, Sign In to add comment