Open.TestHarness.Model.ViewTestClass.ResetTests C# (CSharp) Method

ResetTests() public method

Resets the view tests.
public ResetTests ( bool runDefaultTest ) : void
runDefaultTest bool Flag indicating if the default test should be executed.
return void
        public void ResetTests(bool runDefaultTest)
        {
            instance = null;
            ViewTests.RemoveAll();
            currentControls.Reset();
            PopulateViewTests();
            Output.Clear();
            if (runDefaultTest && DefaultViewTest != null) DefaultViewTest.Execute();
        }