Ejemplo n.º 1
0
        public static void Foreground_GivenValidArgs_CreatesNewObject()
        {
            FabulousText text = "xyz";

            var newForeground = Mock.Of <IColor>();
            var result        = text.Foreground(newForeground);

            Assert.AreNotSame(result, text);
        }
Ejemplo n.º 2
0
        public static void Foreground_NullColor_ThrowsArgNullException()
        {
            FabulousText text = string.Empty;

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