This does not work
int blueInt = Color.Blue.ToArgb(); Color fred = Color.FromArgb(blueInt); Assert.AreEqual(Color.Blue,fred);
I would have expected this with Assert.AreSame because of the boxing with the value types, but AreEqual should not have this problem.
Could you add which language (I'm assuming C#) your using and which testing framework?
What does Assert.AreEqual(true, Color.Blue == fred); result in?
Assert.AreEqual(true, Color.Blue == fred);