public static void Rgb_GivenValidColor_ReturnsNewObject() { FabulousText text = string.Empty; var result = text.Rgb(12, 34, 56); Assert.AreNotSame(text, result); }
public static void Rgb_GivenValidColor_ReturnsNewObjectWithForegroundSet() { var expectedColor = new Rgb(12, 34, 56); FabulousText text = string.Empty; var result = text.Rgb(12, 34, 56); Assert.AreEqual(expectedColor, result.ForegroundColor); }