protected override void FirstInvoke() { if (Provider.HasCapability(UnitTestProviderCapabilities.ClassCanIgnore) && _testClass.Ignore) { LogMessage(new IgnoreMessage(TestGranularity.Test, _testClass.Name)); return; } // Setup Silverlight tests if (_instance != null & TestHarness is UnitTestHarness && _instance is SilverlightTest) { ((UnitTestHarness)TestHarness).PrepareSilverlightTestInstance((SilverlightTest)_instance); } //TODO: Implement the BugAttribute at the class level if(_testClass.ClassInitializeMethod != null) { EnqueueMethodDispatcher(_testClass.ClassInitializeMethod); } foreach (ITestMethod test in _testClass.GetTestMethods()) { ITestWorkItem scenario = new TestMethodDispatcher( TestHarness, _testClass, test, _instance, Provider); _testExecutionQueue.Enqueue(scenario); } Enqueue(_testExecutionQueue); if (_testClass.ClassCleanupMethod != null) { EnqueueMethodDispatcher(_testClass.ClassCleanupMethod); } }
protected override void FirstInvoke() { if (Provider.HasCapability(UnitTestProviderCapabilities.ClassCanIgnore) && _testClass.Ignore) { LogMessage(new IgnoreMessage(TestGranularity.Test, _testClass.Name)); return; } // Setup Silverlight tests if (_instance != null & TestHarness is UnitTestHarness && _instance is SilverlightTest) { ((UnitTestHarness)TestHarness).PrepareSilverlightTestInstance((SilverlightTest)_instance); } //TODO: Implement the BugAttribute at the class level if (_testClass.ClassInitializeMethod != null) { EnqueueMethodDispatcher(_testClass.ClassInitializeMethod); } foreach (ITestMethod test in _testClass.GetTestMethods()) { ITestWorkItem scenario = new TestMethodDispatcher( TestHarness, _testClass, test, _instance, Provider); _testExecutionQueue.Enqueue(scenario); } Enqueue(_testExecutionQueue); if (_testClass.ClassCleanupMethod != null) { EnqueueMethodDispatcher(_testClass.ClassCleanupMethod); } }