Пример #1
0
        public void FinishLaunchWhichIsNotStarted()
        {
            var service = new MockServiceBuilder().Build();

            var launch = new LaunchReporter(service.Object, null, null, new ExtensionManager());

            launch.Invoking(l => l.Finish(new FinishLaunchRequest())).Should().Throw <InsufficientExecutionStackException>().And.Message.Should().Contain("wasn't scheduled for starting");
        }
Пример #2
0
        public void StartingLaunchWhichIsAlreadyStarted()
        {
            var service = new MockServiceBuilder().Build();

            var launch = new LaunchReporter(service.Object, null, null, new ExtensionManager());

            launch.Start(new StartLaunchRequest {
            });
            launch.Invoking(l => l.Start(new StartLaunchRequest {
            })).Should().Throw <InsufficientExecutionStackException>().And.Message.Should().Contain("already scheduled for starting");
        }