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