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