public void ColorConversionTest() { var argb = new ColorARGB(0, 255, 178, 0); var hsl = new ColorHSL(42, 1, 0.5); var convertedHsl = argb.ToHSL(); var convertedArgb = hsl.ToARGB(); Assert.AreEqual(argb, convertedArgb); Assert.AreEqual(hsl, convertedHsl); var backArgb = convertedHsl.ToARGB(); var backHsl = convertedArgb.ToHSL(); Assert.AreEqual(argb, backArgb); Assert.AreEqual(hsl, backHsl); }