Exemple #1
0
        public void TestMapInverseShouldReturnCorrectValues(bool?value, byte red, byte green, byte blue)
        {
            var color  = new Color(red, green, blue);
            var result = _map.MapInverse(color);

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

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