示例#1
0
 public void WhenStringIsEmpty_ThenThrowException()
 {
     Assert.Throws <ArgumentEmptyException>(() => ArgMustBe.NotEmpty(string.Empty));
 }
示例#2
0
 public void WhenCollectionIsEmpty_ThenThrowException()
 {
     var x = Assert.Throws <ArgumentEmptyException>(() => ArgMustBe.NotEmpty(Enumerable.Empty <string>()));
 }
示例#3
0
 public void WhenNotEmpty_ThenNotThrowException(string param)
 {
     Assert.DoesNotThrow(() => ArgMustBe.NotEmpty(param));
 }