public void ShouldExportSimulationOnStop_WhenInCaptureMode() { var fakeDestination = new FakeSimulationDestinationSource(); var runner = HoverflyRunner.StartInCaptureMode(fakeDestination); runner.Dispose(); Assert.Equal(true, fakeDestination.WasSaved); }
public void ShouldStartInCaptureMode() { var fakeDestination = new FakeSimulationDestinationSource(); using (var runner = HoverflyRunner.StartInCaptureMode(fakeDestination)) { Assert.Equal(HoverflyMode.Capture, runner.GetHoverflyMode()); } }
public void ShouldStartInCaptureMode() { var fakeDestination = new FakeSimulationDestinationSource(); using (var runner = HoverflyRunner.StartInCaptureMode(fakeDestination, HoverFlyTestConfig.GetHoverFlyConfigWIthBasePath())) { Assert.Equal(HoverflyMode.Capture, runner.GetHoverflyMode()); } }
public void ShouldExportSimulationOnStop_WhenInCaptureMode() { var fakeDestination = new FakeSimulationDestinationSource(); using (var runner = HoverflyRunner.StartInCaptureMode(fakeDestination, HoverFlyTestConfig.GetHoverFlyConfigWIthBasePath())) { } Assert.Equal(true, fakeDestination.WasSaved); }