コード例 #1
0
 public static void Text_GivenNullText_ThrowsArgNullException()
 {
     Assert.Throws <ArgumentNullException>(() => FabulousTextExtensions.Text(null, string.Empty));
 }
コード例 #2
0
        public static void Background_NullText_ThrowsArgNullException()
        {
            var color = Mock.Of <IColor>();

            Assert.Throws <ArgumentNullException>(() => FabulousTextExtensions.Background(null, color));
        }