private void IsNotEqual_EqualObjects_ThrowsException() { var boxed1 = new MockEquatable<int>(1); var boxed2 = new MockEquatable<int>(1); Assert.ThatThrowsException(() => { Assert.IsNotEqual(boxed1, boxed2); }, typeof(Exception)); }
private void IsEqual_EqualEquatableObjects_DoesNothing() { var boxed1 = new MockEquatable<int>(1); var boxed2 = new MockEquatable<int>(1); Assert.IsEqual(boxed1, boxed2); }
private void IsNotEqual_DifferentObjects_DoesNothing() { var boxed1 = new MockEquatable<int>(1); var boxed2 = new MockEquatable<int>(2); Assert.IsNotEqual(boxed1, boxed2); }