public void IsNotTheSameObjectFailsForSameNonNullTestAndCompareObjects() { var testObject = new MyTestClass(); Verify.TheExpectedException(Verify.FailExceptionType).IsThrownWhen( () => Verify.That(testObject).IsNotTheSameObjectAs(testObject) ).AndHasAMessageThat().Contains("[My Test Class instance] should not be the same object as [My Test Class instance]"); }
public void IsNotTheSameObjectFailsForSameNonNullTestAndCompareObjects() { var testObject = new MyTestClass(); Verify.TheExpectedException(Verify.FailExceptionType).IsThrownWhen( () => Verify.That(testObject).IsNotTheSameObjectAs(testObject) ).AndHasAMessageThat().Contains("[My Test Class instance] should not be the same object as [My Test Class instance]"); }
public void IsTheSameObjectPassessFroSameNonNullTestAndCompareObjects() { var testObject = new MyTestClass(); Verify.That(testObject).IsTheSameObjectAs(testObject); }
public void IsTheSameObjectPassessFroSameNonNullTestAndCompareObjects() { var testObject = new MyTestClass(); Verify.That(testObject).IsTheSameObjectAs(testObject); }