Beispiel #1
0
        private static ITestCaseData GenerateTestCase(ApiTestData apiTestData)
        {
            IComparerResult comparerResult = apiTestData.ComparerResult;
            bool            fail           = Fail(apiTestData, comparerResult);
            TestCaseData    testCaseData   = new TestCaseData(!fail, GetFailMessage(comparerResult)).SetName(comparerResult.Name).SetCategory(apiTestData.Category);

            if (apiTestData.Explicit)
            {
                testCaseData.MakeExplicit("Set explicit by ApiTestAttribute");
            }
            return(testCaseData);
        }
Beispiel #2
0
        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);
        }