示例#1
0
        public void ColorRGBA64_Equals_ColorRGBA64()
        {
            ColorRGBA64 v = ColorRGBA64.ColorRed;

            Assert.IsTrue(v.Equals(ColorRGBA64.ColorRed));
            Assert.IsFalse(v.Equals(ColorRGBA64.ColorGreen));
            Assert.IsFalse(v.Equals(ColorRGBA64.ColorBlue));
        }
示例#2
0
        public void ColorRGBA64_Equals_Object()
        {
            ColorRGBA64 v = ColorRGBA64.ColorRed;

            Assert.IsFalse(v.Equals(null));
            Assert.IsFalse(v.Equals(String.Empty));
            Assert.IsFalse(v.Equals(0.0f));

            Assert.IsTrue(v.Equals((object)ColorRGBA64.ColorRed));
            Assert.IsFalse(v.Equals((object)ColorRGBA64.ColorGreen));
            Assert.IsFalse(v.Equals((object)ColorRGBA64.ColorBlue));
        }