Пример #1
0
        public void ColorRGBA32_Equals_ColorRGBA32()
        {
            ColorRGBA32 v = ColorRGBA32.ColorRed;

            Assert.IsTrue(v.Equals(ColorRGBA32.ColorRed));
            Assert.IsFalse(v.Equals(ColorRGBA32.ColorGreen));
            Assert.IsFalse(v.Equals(ColorRGBA32.ColorBlue));
        }
Пример #2
0
        public void ColorRGBA32_Equals_Object()
        {
            ColorRGBA32 v = ColorRGBA32.ColorRed;

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

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