public void Equals_False_DifferentTypes() { var value1 = new Color("ID"); var value2 = new MetallicColor("ID"); Assert.That(value1.Equals((object)value2), Is.False); }
public void EquatableEqualsFalse_DifferentTypes() { IEquatable <Color> value1 = new Color("ID"); var value2 = new MetallicColor("ID"); Assert.That(value1.Equals(value2), Is.False); }
public void EqualsOperator_False_DifferentTypes() { var value1 = new Color("ID"); var value2 = new MetallicColor("ID"); Assert.That(value1 == value2, Is.False); Assert.That(value1 != value2, Is.True); }
public void GetEnumType_DerivedType() { var value = new MetallicColor("RedMetallic"); Assert.That(value.GetEnumType(), Is.SameAs(typeof(Color))); }