public void AreElementsNotSame_with_objects() { var o1 = new object(); var o2 = new object(); Assert.AreElementsNotSame(new[] { o1 }, new[] { o2 }); }
public void AreElementsNotSame_fails_with_custom_message() { var o = new object(); AssertionFailure[] failures = Capture(() => Assert.AreElementsNotSame(new[] { o }, new[] { o }, "{0} message", "custom")); Assert.Count(1, failures); Assert.AreEqual("custom message", failures[0].Message); }
public void AreElementsNotSame_with_different_types() { var o1 = new object(); var o2 = new object(); var o3 = new object(); Assert.AreElementsNotSame(new[] { o1, o2 }, new List <object> { o1, o3 }); }