public void ColorRGBAF_Equals_ColorRGBAF() { ColorRGBAF v = ColorRGBAF.ColorRed; Assert.IsTrue(v.Equals(ColorRGBAF.ColorRed)); Assert.IsFalse(v.Equals(ColorRGBAF.ColorGreen)); Assert.IsFalse(v.Equals(ColorRGBAF.ColorBlue)); }
public void ColorRGBAF_Equals_Object() { ColorRGBAF v = ColorRGBAF.ColorRed; Assert.IsFalse(v.Equals(null)); Assert.IsFalse(v.Equals(String.Empty)); Assert.IsFalse(v.Equals(0.0f)); Assert.IsTrue(v.Equals((object)ColorRGBAF.ColorRed)); Assert.IsFalse(v.Equals((object)ColorRGBAF.ColorGreen)); Assert.IsFalse(v.Equals((object)ColorRGBAF.ColorBlue)); }