Exemplo n.º 1
0
        public void ThrowsExceptionWhenTestFails()
        {
            var fixture = new StorytellerFixture();

            fixture.GivenProcessExitsWithCode(1);
            Should.Throw <StorytellerException>(() => fixture.Run());
        }
Exemplo n.º 2
0
        public void ThrowsIfStExeIsNotFound()
        {
            var fixture = new StorytellerFixture();

            fixture.GivenDefaultToolDoNotExist();
            Should.Throw <CakeException>(() => fixture.Run());
        }
Exemplo n.º 3
0
        public void FindsStRunner()
        {
            var fixture = new StorytellerFixture();

            fixture.Run();
            fixture.ProcessRunner.Received(1).Start(Arg.Is <FilePath>(
                                                        fp => fp.FullPath == "/Working/tools/ST.exe"),
                                                    Arg.Any <ProcessSettings>());
        }