Ejemplo n.º 1
0
        public void ParseRange_GettingInRangeFactorForRgb_ReturnExpectedFactor(string rangeString, double expFactor)
        {
            Color  color  = Color.FromRgb(1, 0.1, 0); // a bit yellowish max saturated red
            var    range  = CliUtils.ParseRange(rangeString);
            double factor = range.InRangeFactor(color);

            Assert.That(factor, Is.EqualTo(expFactor));
        }