public static ITestTree CreateExecutionTree() { ITestTreeElement tgLockingTests = TestFactory.CreateGroup("Lock by velocity", TestFactory.CreateElement(LockByVelocity)); ITestTreeElement tgCrashDetection = TestFactory.CreateGroup("Crash detection", TestFactory.CreateElementList <FctDel_int>(CrashDetection)); ITestTreeElement tgWindowTests = TestFactory.CreateGroup("Window tests", TestFactory.CreateElement("Open the window", SimpleWindowTest, 0), TestFactory.CreateElement("Close the window", SimpleWindowTest, 1)); ITestTree testTree = TestFactory.CreateTestTree(); testTree.Add(tgLockingTests); testTree.Add(tgCrashDetection); if (CtrlVars.Coverage.GetValue() == CtrlVars.Coverage.Full) { testTree.Add(tgWindowTests); } return(testTree); }