public static void Foreground_GivenValidArgs_CreatesNewObject() { FabulousText text = "xyz"; var newForeground = Mock.Of <IColor>(); var result = text.Foreground(newForeground); Assert.AreNotSame(result, text); }
public static void Foreground_NullColor_ThrowsArgNullException() { FabulousText text = string.Empty; Assert.Throws <ArgumentNullException>(() => text.Foreground(null)); }