public void Should_Throw_If_DNU_Executable_Was_Not_Found() { // Given var fixture = new DNUBuilderFixture(); fixture.Path = "./src/*"; fixture.GivenDefaultToolDoNotExist(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsCakeException(result, "DNU: Could not locate executable."); }
public void Should_Throw_If_Path_Are_Null() { // Given var fixture = new DNUBuilderFixture(); fixture.Settings = new DNUBuildSettings(); fixture.GivenDefaultToolDoNotExist(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsArgumentNullException(result, "path"); }