示例#1
0
        public void HsvEquality()
        {
            var x = default(Hsv);
            var y = new Hsv(Vector3.One);

            Assert.True(default(Hsv) == default(Hsv));
            Assert.False(default(Hsv) != default(Hsv));
            Assert.Equal(default(Hsv), default(Hsv));
            Assert.Equal(new Hsv(1, 0, 1), new Hsv(1, 0, 1));
            Assert.Equal(new Hsv(Vector3.One), new Hsv(Vector3.One));
            Assert.False(x.Equals(y));
            Assert.False(x.Equals((object)y));
            Assert.False(x.GetHashCode().Equals(y.GetHashCode()));
        }