public void UnionTest() { // Byte is a value type, and will default to 0, // so the default colour will be black! var black = new RGB(); Assert.AreEqual(black.AsHex(), "000000"); var coral = new RGB(255, 125, 125); Assert.AreEqual(coral.AsHex(), "FF7D7D"); var coralConverted = new RGB().FromHex("FF7D7D"); Assert.AreEqual(coralConverted.R, 255); Assert.AreEqual(coralConverted.G, 125); Assert.AreEqual(coralConverted.B, 125); }