public async Task disposes_the_runtime() { var system = new FakeStorytellerSystem(); await system.Warmup(); system.Dispose(); system.DisposableGuy.WasDisposed.ShouldBeTrue(); }
public async Task after_all_is_called_in_dispose() { var system = new FakeStorytellerSystem(); await system.Warmup(); system.AfterAllWasCalled.ShouldBeFalse(); system.Dispose(); system.AfterAllWasCalled.ShouldBeTrue(); }