コード例 #1
0
        public void YCbCrEquality()
        {
            var x = default(YCbCr);
            var y = new YCbCr(Vector3.One);

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