public void AreNotSameShouldSuccedWithOneNullReference() { var assert = new AssertClass(); assert.AreNotSame(new object(), null); Assert.AreEqual(TestOutcome.Succeeded, _args.Result.Outcome); }
public void AreNotSameShouldFailWithBothNullReferences() { var assert = new AssertClass(); assert.AreNotSame(null, null); Assert.AreEqual(TestOutcome.Failed, _args.Result.Outcome); }
public void AreNotSameShouldFailWithSameReferences() { var assert = new AssertClass(); var obj1 = new object(); var obj2 = obj1; assert.AreNotSame(obj1, obj2); Assert.AreEqual(TestOutcome.Failed, _args.Result.Outcome); }
public void AreNotSameShouldSucceedWithDifferentReferences() { var assert = new AssertClass(); var obj1 = new object(); var obj2 = new object(); assert.AreNotSame(obj1, obj2); Assert.AreEqual(TestOutcome.Succeeded, _args.Result.Outcome); }