public override void Execute(ITestResultListener listener)
{
try
{
if (IsIgnored())
{
listener.Ignored(this);
return;
}
_action();
listener.Success(this);
}
catch (PendingException)
{
listener.Pending(this);
}
catch (Exception ex)
{
listener.Failed(this, ex);
}
}