Example #1
0
 public void ShouldNotThrowExceptionWhenBeTrueCheckTrueValue()
 {
     Should.BeTrue(true, () => new CodeException());
 }
Example #2
0
 public void ShouldNotThrowExceptionWhenNotNullCheckNotNullValue()
 {
     Should.NotNull("", () => new CodeException());
     Should.NotNull(1, () => new CodeException());
     Should.NotNull(new object(), () => new CodeException());
 }
Example #3
0
 public void ShouldThrowExceptionWhenNotBlankCheckBlankString()
 {
     Should.NotBlank(" \t ", () => new CodeException());
 }
Example #4
0
        public void ShouldNotThrowExceptionWhenNotEmptyCheckNullCollection()
        {
            IEnumerable <string> enumerable = null;

            Should.NotEmpty(enumerable, () => new CodeException());
        }
Example #5
0
 public void ShouldThrowExceptionWhenNotBlankCheckNullString()
 {
     Should.NotBlank(null, () => new CodeException());
 }
Example #6
0
 public void ShouldNotThrowExceptionWhenNotEmptyCheckEmptyCollection()
 {
     Should.NotEmpty(new string[0], () => new CodeException());
 }
Example #7
0
 public void ShouldNotThrowExceptionWhenNotEmptyCheckNotEmptyCollection()
 {
     Should.NotEmpty(new[] { 1 }, () => new CodeException());
 }
Example #8
0
 public void ShouldThrowExceptionWhenNotEmptyCheckEmptyString()
 {
     Should.NotEmpty("", () => new CodeException());
 }
Example #9
0
 public void ShouldThrowExceptionWhenNotNullCheckNullValue()
 {
     Should.NotNull(null, () => new InvalidOperationException());
 }
Example #10
0
 public void ShouldNotThrowExceptionWhenBeFalseCheckFalseValue()
 {
     Should.BeFalse(false, () => new CodeException());
 }