Пример #1
0
        public void ShouldThrowExceptionWhenNotBlankCheckBlankString()
        {
            var action = new Action(() => Should.NotBlank(" \t ", () => new CodeException()));

            action.Should().Throw <CodeException>();
        }
Пример #2
0
 public void ShouldThrowExceptionWhenNotBlankCheckNullString()
 {
     Should.NotBlank(null, () => new CodeException());
 }
Пример #3
0
 public void ShouldNotThrowExceptionWhenNotBlankCheckNotBlankString()
 {
     Should.NotBlank("a", () => new CodeException());
     Should.NotBlank(" a ", () => new CodeException());
 }
Пример #4
0
 public void ShouldThrowExceptionWhenNotBlankCheckEmptyString()
 {
     Should.NotBlank("", () => new CodeException());
 }