public void HSL2RGBTest()
        {
            ColorHelper.ColorRGB colorRGB = ColorHelper.HSL2RGB(0, 1.0, 0.5);

            ColorHelper.ColorRGB resultRGB;
            resultRGB.r = 255;
            resultRGB.g = 0;
            resultRGB.b = 0;

            Assert.AreEqual(colorRGB, resultRGB);
        }
        public void HEX2RGBTest2()
        {
            string hexString = "#812DD3";

            ColorHelper.ColorRGB colorRGB = ColorHelper.HEX2RGB(hexString);

            ColorHelper.ColorRGB resultRGB;
            resultRGB.r = 129;
            resultRGB.g = 45;
            resultRGB.b = 211;

            Assert.AreEqual(colorRGB, resultRGB);
        }
        public void HEX2RGBTestShort()
        {
            string hexString = "#f00";

            ColorHelper.ColorRGB colorRGB = ColorHelper.HEX2RGB(hexString);

            ColorHelper.ColorRGB resultRGB;
            resultRGB.r = 255;
            resultRGB.g = 0;
            resultRGB.b = 0;

            Assert.AreEqual(colorRGB, resultRGB);
        }
        public void RGB2HSL2RGBTest()
        {
            ColorHelper.ColorRGB testRGB;
            testRGB.r = 129;
            testRGB.g = 45;
            testRGB.b = 211;

            double h, s, l;

            ColorHelper.RGB2HSL(testRGB, out h, out s, out l);

            ColorHelper.ColorRGB colorRGB = ColorHelper.HSL2RGB(h, s, l);

            Assert.AreEqual(colorRGB, testRGB);
        }