Exemple #1
0
        public void TestMonochromatic()   // darker to lighter
        {
            var result = _harmony.GetMonochromatic(_color).ToArray();

            Assert.AreEqual(Color.FromArgb(143, 11, 173), result[0]);
            Assert.AreEqual(Color.FromArgb(163, 13, 197), result[1]);
            Assert.AreEqual(Color.FromArgb(183, 14, 221), result[2]);
            Assert.AreEqual(_color, result[3]);
            Assert.AreEqual(Color.FromArgb(205, 45, 242), result[4]);
            Assert.AreEqual(Color.FromArgb(210, 69, 243), result[5]);
            Assert.AreEqual(Color.FromArgb(216, 93, 245), result[6]);
        }