public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code() { // Given var fixture = new AliaSqlFixture(); fixture.GivenProcessExitsWithCode(1); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.Equal("AliaSql: Process returned an error (exit code 1).", result.Message); Assert.IsType <CakeException>(result); }
public void Should_Throw_If_No_Arguments_Folder() { // Given var fixture = new AliaSqlFixture { Settings = new AliaSqlSettings() }; fixture.GivenProcessExitsWithCode(1); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsType <ArgumentException>(result); }