/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> /// <param name="filter">The filter used to select this test</param> public SimpleWorkItem(TestMethod test, ITestFilter filter) : base(test) { _command = test.RunState == RunState.Runnable || test.RunState == RunState.Explicit && filter.IsExplicitMatch(test) ? CommandBuilder.MakeTestCommand(test) : CommandBuilder.MakeSkipCommand(test); }