public void ValidateAppsTitle_AppSupportDepartmentUnknownTitle_Throws() { var data = new[] { new FileData { Fieldname = "Dept", StringValue = "Apps" }, new FileData { Fieldname = "Title", StringValue = "abc" } }; Assert.Throws<ArgumentException>(() => data.ValidateAppsTitle()); }
public void ValidateAppsTitle_AppSupportDepartmentKnownTitle_Succeeds(string title) { var data = new[] { new FileData { Fieldname = "Dept", StringValue = "Architecture" }, new FileData { Fieldname = "Title", StringValue = title } }; Assert.DoesNotThrow(() => data.ValidateAppsTitle()); }