public void Validate_WhenStringIsLongerThan256_Throws(string value)
 {
     var validator = new IsNotLongerThan256();
     var data = new FileData { StringValue = value };
     Assert.Greater(value.Length, 256);
     Assert.Throws<ArgumentException>(() => validator.Validate(data));
 }
 public void Validate_WhenStringIsNoLongerThan256_Succeeds(string value)
 {
     var validator = new IsNotLongerThan256();
     var data = new FileData { StringValue = value };
     Assert.LessOrEqual(value.Length, 256);
     Assert.DoesNotThrow(() => validator.Validate(data));
 }