public void ShouldIncludeFileName(string scriptFilePath) { //arrange var fixture = new CakeFixture(true, scriptFilePath); //act var result = fixture.Run(); //result Assert.True(result.Args.Contains(scriptFilePath)); }
public void ShouldThrowIfFileNotExists() { // arrange var fixture = new CakeFixture(false); //act var result = Record.Exception(() => fixture.Run()); //assert Assert.IsType(typeof(FileNotFoundException), result); }