public void Should_FailEqualityForDifferentNumericValues() { var numericItem = new U1(1); var numericItem2 = new U1(2); Assert.IsFalse(numericItem.Equals(numericItem2)); }
public void Should_FailEqualityForDifferentDataTypes() { var numericItem = new U1(1); var numericItem2 = new F4(5); Assert.IsFalse(numericItem.Equals(numericItem2)); }
public void Should_FailEqualityForDifferetObjectTypes() { var numericItem = new U1(1); var obj = "test"; Assert.IsFalse(numericItem.Equals(obj)); }
public void Should_BeEqualIfNumericItemsEqual() { var numericItem = new U1(1); var numericItem2 = new U1(1); Assert.IsTrue(numericItem.Equals(numericItem2)); }
public void Should_FailEqualityForNull() { var numericItem = new U1(1); Assert.IsFalse(numericItem.Equals(null)); }