Ejemplo n.º 1
0
        public void Classic_Match()
        {
            var hsv       = new HSV(213, 46, 49);
            var algorithm = new Classic();
            var actual    = algorithm.Match(hsv);
            var expected  = new Blend()
            {
                Colors = new[]
                {
                    new HSV(213, 46, 49),
                    new HSV(213, 46, 79),
                    new HSV(53, 46, 49),
                    new HSV(43, 46, 79),
                    new HSV(0, 0, 51),
                    new HSV(0, 0, 49)
                }
            };

            Assert.Equal(expected, actual, new BlendEqualityComparer());
        }