public void ColorRGBAHF_Equals_ColorRGBAHF() { ColorRGBAHF v = ColorRGBAHF.ColorRed; Assert.IsTrue(v.Equals(ColorRGBAHF.ColorRed)); Assert.IsFalse(v.Equals(ColorRGBAHF.ColorGreen)); Assert.IsFalse(v.Equals(ColorRGBAHF.ColorBlue)); }
public void ColorRGBAHF_Equals_Object() { ColorRGBAHF v = ColorRGBAHF.ColorRed; Assert.IsFalse(v.Equals(null)); Assert.IsFalse(v.Equals(String.Empty)); Assert.IsFalse(v.Equals(0.0f)); Assert.IsTrue(v.Equals((object)ColorRGBAHF.ColorRed)); Assert.IsFalse(v.Equals((object)ColorRGBAHF.ColorGreen)); Assert.IsFalse(v.Equals((object)ColorRGBAHF.ColorBlue)); }