public void Should_Not_Call_To_Engine()
            {
                // Given
                var engine  = Substitute.For <ICakeEngine>();
                var console = Substitute.For <IConsole>();
                var host    = new DescriptionScriptHost(engine, console);

                // When
                host.RunTarget("Target");

                // Then
                engine.Received(0).RunTarget("Target");
            }
Пример #2
0
            public void Should_Not_Call_To_Engine()
            {
                // Given
                var engine  = Substitute.For <ICakeEngine>();
                var context = Substitute.For <ICakeContext>();
                var console = Substitute.For <IConsole>();
                var host    = new DescriptionScriptHost(engine, context, console);

                // When
                host.RunTarget("Target");

                // Then
                engine.Received(0).RunTarget(
                    context,
                    Arg.Any <DefaultExecutionStrategy>(),
                    "Target");
            }