private static ITestCaseData GenerateTestCase(ApiTestData apiTestData) { IComparerResult comparerResult = apiTestData.ComparerResult; bool fail = comparerResult.GetAllCount(Severity.Error) + comparerResult.GetAllCount(Severity.Warning) > 0; TestCaseData testCaseData = new TestCaseData(!fail, fail ? GetFailMessage(comparerResult) : "").SetName(comparerResult.Name).SetCategory(apiTestData.Category); if (apiTestData.IgnoreList.Contains(comparerResult.Name)) { testCaseData.Ignore(); } if (apiTestData.Explicit) { testCaseData.MakeExplicit(""); } return testCaseData; }