public void ThrowsExceptionWhenTestFails() { var fixture = new StorytellerFixture(); fixture.GivenProcessExitsWithCode(1); Should.Throw <StorytellerException>(() => fixture.Run()); }
public void ThrowsIfStExeIsNotFound() { var fixture = new StorytellerFixture(); fixture.GivenDefaultToolDoNotExist(); Should.Throw <CakeException>(() => fixture.Run()); }
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>()); }