A utility class to create TestCommands
Esempio n. 1
0
 /// <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);
 }