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>(); }
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>(); }
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>(); }