Ejemplo n.º 1
0
            private void Initialize()
            {
                progressMonitor.Canceled += HandleCanceled;

                // Build a reverse mapping from NUnit tests.
                testCommandsByTestName = new Dictionary <TestName, ITestCommand>();
                foreach (ITestCommand testCommand in testCommands)
                {
                    NUnitTest test = (NUnitTest)testCommand.Test;
                    test.ProcessTestNames(delegate(NUnit.Core.TestName testName)
                    {
                        testCommandsByTestName[testName] = testCommand;
                    });
                }
                nUnitTestFilter = new NUnitTestFilter(testCommandsByTestName);

                testContextStack = new Stack <ITestContext>();
            }