コード例 #1
0
        public void AddInBetweenColorsWorks(bool cycle, string colorsAsHex, string expectedAsHex)
        {
            var expected = expectedAsHex.Split(',').Select(ColorExtensions.FromHexString).ToArray();
            var colors   = colorsAsHex.Split(',').Select(ColorExtensions.FromHexString).ToArray();
            var actual   = ColorExtensions.AddInBetweenColors(colors, cycle).ToArray();

            CollectionAssert.AreEqual(expected, actual);
        }