示例#1
0
        public static void Background_GivenValidArgs_CreatesNewObject()
        {
            FabulousText text = "xyz";

            var newBackground = Mock.Of <IColor>();
            var result        = text.Background(newBackground);

            Assert.AreNotSame(result, text);
        }
示例#2
0
        public static void Background_NullColor_ThrowsArgNullException()
        {
            FabulousText text = string.Empty;

            Assert.Throws <ArgumentNullException>(() => text.Background(null));
        }