public void TearDown() { var bus = Bus; Bus = null; if (bus != null) { var instanceId = bus.InstanceId; bus.Stop().Wait(); bus.Dispose(); MethodCallCounter.DestroyInstance(instanceId); } Instance?.Dispose(); Instance = null; TestLoggingExtensions.LogTestResult(); if (!_thenWasInvoked) { Assert.Fail($"Test completed without calling {nameof(Then)} method."); } }
public void TearDown() { var bus = Bus; Bus = null; bus?.Stop().Wait(); bus?.Dispose(); Instance?.Dispose(); Instance = null; TestLoggingExtensions.LogTestResult(); if (!_thenWasInvoked) { Assert.Fail($"Test completed without calling {nameof(Then)} method."); } }
public void TearDown() { var bus = Bus; Bus = null; if (bus != null) { var instanceId = bus.InstanceId; bus.Stop().Wait(); bus.Dispose(); MethodCallCounter.DestroyInstance(instanceId); } Instance?.Dispose(); Instance = null; TestLoggingExtensions.LogTestResult(); }
public virtual void TearDown() { TestLoggingExtensions.LogTestResult(); }
public void SetUp() { _thenWasInvoked = false; TestLoggingExtensions.LogTestStart(); }
public void SetUp() { TestLoggingExtensions.LogTestStart(); }