Exemplo n.º 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));
        }
Exemplo n.º 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));
        }