public static void Background_GivenValidArgs_CreatesNewObject() { FabulousText text = "xyz"; var newBackground = Mock.Of <IColor>(); var result = text.Background(newBackground); Assert.AreNotSame(result, text); }
public static void Background_NullColor_ThrowsArgNullException() { FabulousText text = string.Empty; Assert.Throws <ArgumentNullException>(() => text.Background(null)); }