Exemplo n.º 1
0
        internal void SkipTest(string testComponent = "", string[] reportCategories = null)
        {
            try
            {
                reportCategories = reportCategories ?? testRunDetails;
                var component = !testComponent2.HasValue()
                    ? testComponent1
                    : testComponent2;
                testComponent = testComponent.HasValue()
                    ? testComponent
                    : component;

                testInstance.AssignReportCategories(reportCategories);
                string msg = $"TEST SKIPPED : Tenant {tenantName} does not have implementation of component ({testComponent}).";
                Report.AssertIgnore(msg);
                StaticHelpers.InjectTestStatus(TestStatus.Skipped, msg);
                Assert.Ignore(msg);
            }
            catch (Exception)
            {
                throw;
            }
        }