public void TestIsNull() { EqualityClass v1 = new EqualityClass("test"); EqualityClass v2 = null; Assert.IsNull(null); Assert.IsNull(v2); ExpectFail(() => Assert.IsNull(v1)); }
public void TestAreSame() { EqualityClass v1 = new EqualityClass("test"); EqualityClass v2 = new EqualityClass("test"); Assert.AreSame(v1, v1); Assert.AreSame(v2, v2); ExpectFail(() => Assert.AreSame(v1, v2)); }