public void HexadecimalFromColor_ColorLibrary()
 {
     foreach (ColorLibrary.Name name in ColorLibrary.Library.Keys)
     {
         //arrange
         TestColor testColor = ColorLibrary.Library[name];
         //act
         string result = ConvertColors.ToHexadecimal(testColor.Color);
         //assert
         Assert.AreEqual(testColor.Hexadecimal, result);
     }
 }
 public void ColorFromHexadecimal_ColorLibrary()
 {
     foreach (ColorLibrary.Name name in ColorLibrary.Library.Keys)
     {
         //arrange
         TestColor testColor = ColorLibrary.Library[name];
         //act
         Color result = ConvertColors.HexadecimalToColor(testColor.Hexadecimal);
         //assert
         Assert.AreEqual(testColor.Color.R, result.R);
         Assert.AreEqual(testColor.Color.G, result.G);
         Assert.AreEqual(testColor.Color.B, result.B);
     }
 }
 public void HSVFromColor_ColorLibrary()
 {
     foreach (ColorLibrary.Name name in ColorLibrary.Library.Keys)
     {
         //arrange
         TestColor testColor = ColorLibrary.Library[name];
         //act
         HSV result = ConvertColors.ToHSV(testColor.Color);
         //assert
         Assert.AreEqual(testColor.HSV.Hue, result.Hue);
         Assert.AreEqual(testColor.HSV.Saturation, result.Saturation);
         Assert.AreEqual(testColor.HSV.Value, result.Value);
     }
 }