MakeTestCommand() public static méthode

Creates a test command for use in running this test.
public static MakeTestCommand ( TestMethod test ) : TestCommand
test TestMethod
Résultat TestCommand
Exemple #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);
 }
 /// <summary>
 /// Construct a simple work item for a test.
 /// </summary>
 /// <param name="test">The test to be executed</param>
 public SimpleWorkItem(TestMethod test) : base(test)
 {
     _command = CommandBuilder.MakeTestCommand(test);
 }