Esempio n. 1
0
        public void ToRgb24_Retval()
        {
            // arrange
            var source   = new Rgba64(5140, 9766, 19532, 29555);
            var expected = new Rgb24(20, 38, 76);

            // act
            var actual = source.ToRgb24();

            // assert
            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void Rgba64_ToRgb24()
        {
            // arrange
            var rgba64   = new Rgba64(0.08f, 0.15f, 0.30f, 0.45f);
            var actual   = default(Rgb24);
            var expected = new Rgb24(20, 38, 76);

            // act
            rgba64.ToRgb24(ref actual);

            // assert
            Assert.Equal(expected, actual);
        }