示例#1
0
        public void TestMapShouldReturnCorrectValues(bool?value, byte red, byte green, byte blue)
        {
            var result = _map.Map(value);
            var color  = new Color(red, green, blue);

            Assert.That(result, Is.EqualTo(color));
        }
示例#2
0
        public void TestMapShouldReturnDescendingValues(bool?value, byte red, byte green, byte blue)
        {
            _map = new BooleanToColorMap(_colorPalette.Colors, SortOrder.Descending);
            var result = _map.Map(value);
            var color  = new Color(red, green, blue);

            Assert.That(result, Is.EqualTo(color));
        }