public void Abort() { _result.WasCancelled = true; captureException("Test Execution was forcibly aborted"); _listener.Exception("Test Execution was forcibly aborted"); if (_testThread != null) { _testThread.Abort(); } }
public void LoadFixture(string fixtureKey, ITestPart part) { var results = ResultsFor(part); try { var fixture = _container.GetInstance <IFixture>(fixtureKey); LoadFixture(fixture, part); } catch (StructureMapException e) { _fixtureIsInvalid = true; _listener.Exception(e.ToString()); if (e.ErrorCode == 200) { results.CaptureException("Unable to find a Fixture named '{0}'".ToFormat(fixtureKey)); IncrementSyntaxErrors(); } else { IncrementExceptions(); if (e.InnerException != null) { results.CaptureException(e.InnerException.ToString()); } else { results.CaptureException(e.ToString()); } } } catch (Exception e) { _fixtureIsInvalid = true; _listener.Exception(e.ToString()); results.CaptureException(e.ToString()); IncrementExceptions(); } }