public void TC16_Selenium_Castor_CapacityBooking() { if (testResult["TC10_HMORDER_Definite"] == "Passed") { LeanFtTest1 Testpahse1 = new LeanFtTest1(); try { Testpahse1.TC16_Selenium_Castor_CapacityBooking(); } finally { Testpahse1.TearDown(); } } else { Reporter.ReportEvent(TestContext.CurrentContext.Test.MethodName, "due to fail/Skip in test TC10_HMORDER_Definite and current test depends on that", Status.Warning); Assert.Ignore(); } }