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

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

            fixture.GivenDefaultToolDoNotExist();
            Should.Throw <CakeException>(() => fixture.Run());
        }
Esempio 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>());
        }