private static IEnumerable IgnoreForComparisonAttributeIgnoreForOthersTestData() { string rootName = nameof(IgnoreForComparisonAttributeIgnoreForOthers); yield return(new TestCaseData(typeof(PersonExWithIgnore), ModelsHelper.CreatePersonExWithIgnore()) .SetName($"{rootName} {nameof(IgnorePropertyOptions.IgnoreForAll)}")); yield return(new TestCaseData(typeof(PersonExWithIgnoreForOthers), ModelsHelper.CreatePersonExWithIgnoreForOthers()) .SetName($"{rootName} {nameof(IgnorePropertyOptions.IgnoreForOthers)}")); }