EmptyTestCommand
EmptyTestCommand is a TestCommand that does nothing. It simply
returns the current result from the context when executed. We
use it to avoid testing for null when executing a chain of
DelegatingTestCommands.
namespace NUnit.Framework.Internal.Commands
{
public class EmptyTestCommand : TestCommand
{
public EmptyTestCommand(Test test)
: base(test)
{
}
public override TestResult Execute(TestExecutionContext context)
{
return context.CurrentResult;
}
}
}