Пример #1
0
 public void Validate_WhenStringIsEmpty_Throws(string value)
 {
     var validator = new IsNotEmpty();
     var data = new FileData { StringValue = value };
     Assert.Throws<ArgumentException>(() => validator.Validate(data));
 }
Пример #2
0
 public void Validate_WhenStringIsNotEmpty_Succeeds()
 {
     var validator = new IsNotEmpty();
     var data = new FileData { StringValue = "abv" };
     Assert.DoesNotThrow(() => validator.Validate(data));
 }