public void ShouldThrowExceptionWhenNotBlankCheckBlankString() { var action = new Action(() => Should.NotBlank(" \t ", () => new CodeException())); action.Should().Throw <CodeException>(); }
public void ShouldThrowExceptionWhenNotBlankCheckNullString() { Should.NotBlank(null, () => new CodeException()); }
public void ShouldNotThrowExceptionWhenNotBlankCheckNotBlankString() { Should.NotBlank("a", () => new CodeException()); Should.NotBlank(" a ", () => new CodeException()); }
public void ShouldThrowExceptionWhenNotBlankCheckEmptyString() { Should.NotBlank("", () => new CodeException()); }