Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static void Background_NullColor_ThrowsArgNullException()
        {
            FabulousText text = string.Empty;

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