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

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