Exemple #1
0
        public void Rg32_ToRgb24()
        {
            // arrange
            var rg32     = new Rg32(0.1f, -0.3f);
            var actual   = default(Rgb24);
            var expected = new Rgb24(25, 0, 0);

            // act
            rg32.ToRgb24(ref actual);

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