Exemplo n.º 1
0
        public void HslEquality()
        {
            var x = default(Hsl);
            var y = new Hsl(Vector3.One);

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