public void ModelWithNotEmptyStringAttribute_InvalidModel_ReturnsExpectedResults() { // Arrange var model = new ModelWithNotEmptyStringAttribute { Description = string.Empty }; // Act var result = ModelValidator.Validate(model); // Assert AssertIsNotValid(result, nameof(model.Description), typeof(NotEmptyStringAttribute), ValidationType.NotEmptyString); }
public void ModelWithNotEmptyStringAttribute_ValidModel_ReturnsExpectedResults() { // Arrange var model = new ModelWithNotEmptyStringAttribute { Description = "Some text" }; // Act var result = ModelValidator.Validate(model); // Assert AssertIsValid(result); }