public void startTest(FitsMistakesTest test, ITestHelper helper) { button1.Hide(); button3.Hide(); if (currentTest != null) { currentTest.OnTestCompleted -= currentTest_OnTestCompleted; currentTest.OnTestValueUpdated -= currentTest_OnTestValueUpdated; currentTest.OnTryFailed -= currentTest_OnTryFailed; } this.Text = helper.TestName; currentTest = test; currentHelper = helper; currentTest.OnTestCompleted += currentTest_OnTestCompleted; currentTest.OnTestValueUpdated += currentTest_OnTestValueUpdated; currentTest.OnTryFailed += currentTest_OnTryFailed; }
public void startTest(FitsMistakesTest test, ITestHelper helper) { button1.Hide(); button3.Hide(); if (currentTest != null) { currentTest.OnTestCompleted -= currentTest_OnTestCompleted; currentTest.OnTestValueUpdated -= currentTest_OnTestValueUpdated; currentTest.OnTryFailed -= currentTest_OnTryFailed; } this.Text = helper.TestName; currentTest = test; currentHelper = helper; currentTest.OnTestCompleted += currentTest_OnTestCompleted; currentTest.OnTestValueUpdated += currentTest_OnTestValueUpdated; currentTest.OnTryFailed += currentTest_OnTryFailed; }