public void Validate_NotAppSupportDepartmentKnownAppSupportTitle_Throws(string title) { var validator = new ValidateNonArchitectAndNonAppsTitle(); var data = new[] { new FileData { Fieldname = Constants.Field.Dept, StringValue = "abc" }, new FileData { Fieldname = Constants.Field.Title, StringValue = title } }; Assert.Throws<ArgumentException>(() => validator.Validate(data)); }
public void Validate_NonArchitectAndNonAppsTitle_Succeeds() { var validator = new ValidateNonArchitectAndNonAppsTitle(); var data = new[] { new FileData { Fieldname = Constants.Field.Dept, StringValue = "abc" }, new FileData { Fieldname = Constants.Field.Title, StringValue = "xyz" } }; Assert.DoesNotThrow(() => validator.Validate(data)); }