public void EquivalentValuesOfDifferentTypesAreNotEqual() { var tt1 = ATinyType.Create <ATinyType>("value"); var tt2 = AnotherTinyType.Create <AnotherTinyType>("value"); Assert.IsFalse(tt1.Equals(tt2)); }
public void EquivalentValuesOfDifferentTypesHaveUnequalHashCodes() { var tt1 = ATinyType.Create <ATinyType>("value"); var tt2 = AnotherTinyType.Create <AnotherTinyType>("value"); Assert.AreNotEqual(tt1.GetHashCode(), tt2.GetHashCode()); }
public void EquivalentValuesWithDifferentTypesAreNotEqualTinyTypes() { var tt1 = ATinyType.Create <ATinyType>(10); var tt2 = AnotherTinyType.Create <AnotherTinyType>(10); Assert.AreNotEqual(tt1, tt2); }