public bool CanHandle(AtataContextCleanUpEvent eventData, AtataContext context) { dynamic testResult = NUnitAdapter.GetCurrentTestResultAdapter(); return(NUnitAdapter.IsTestResultAdapterFailed(testResult)); }
public void Report(string message, string stackTrace) { NUnitAdapter.RecordAssertionIntoTestResult(NUnitAdapter.AssertionStatus.Warning, message, stackTrace); }
public void Handle(AtataContextCleanUpEvent eventData, AtataContext context) { dynamic testResult = NUnitAdapter.GetCurrentTestResultAdapter(); context.Log.Error((string)testResult.Message, (string)testResult.StackTrace); }
public bool CanHandle(AtataContextCleanUpEvent eventData, AtataContext context) => NUnitAdapter.IsCurrentTestFailed();