public void Should_throw_if_asciidoctorj_executable_was_not_found() { var fixture = new AsciiDoctorJRunnerFixture(); fixture.GivenDefaultToolDoNotExist(); const string expectedMessage = "Could not locate executable"; Action result = () => fixture.Run(); result.Should().Throw <CakeException>().Where(ex => ex.Message.Contains(expectedMessage)); }
public void Should_Throw_If_Settings_Are_Null() { var fixture = new AsciiDoctorJRunnerFixture(); fixture.GivenSettingsIsNull(); Action result = () => { fixture.Run(); }; result.Should().Throw <ArgumentNullException>(); }