Пример #1
0
        public void IntegerToColour255_WhenIdAboveByte_ShouldCarryRemainder()
        {
            var(r, g, b) = ColourMapper.IntegerToColor255(300);

            Assert.AreEqual(0, r);
            Assert.AreEqual(300 - 255, g);
            Assert.AreEqual(255, b);
        }
Пример #2
0
        public void IntegerToColour255()
        {
            var(r, g, b) = ColourMapper.IntegerToColor255(0);

            Assert.AreEqual(0, r);
            Assert.AreEqual(0, g);
            Assert.AreEqual(0, b);
        }