Beispiel #1
0
        public void GetCompressedTest()
        {
            ColorRGB96 input    = new ColorRGB96(2.0f, 1.0f, 0.5f);
            ColorRGB96 expected = new ColorRGB96(1.0f, 0.5f, 0.25f);

            ColorRGB96 actual = input.GetCompressed();

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void GetCompressedShouldEqualCompress()
        {
            ColorRGB96 input = new ColorRGB96(1.5f, 0.4f, -51.5f);

            ColorRGB96 compress = input.GetCompressed();

            input.Compress();

            bool expected = true;
            bool actual   = compress == input;

            Assert.AreEqual(expected, actual);
        }