Ejemplo n.º 1
0
 public void SetUp()
 {
     testCommand = MockRepository.GenerateStub<ITestCommand>();
     testName = new TestName { TestID = new TestID(), FullName = "fullName" };
     var testCommandsByTestName = new Dictionary<TestName, ITestCommand> { { testName, testCommand } };
     testFilter = new NUnitTestFilter(testCommandsByTestName);
     test = MockRepository.GenerateStub<ITest>();
 }
Ejemplo n.º 2
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>();
            }
Ejemplo n.º 3
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>();
            }