public void Should_Throw_If_Settings_Are_Null() { var fixture = new PandocRunnerFixture { Settings = null }; Action result = () => fixture.Run(); Assert.That(result, Throws.ArgumentNullException); }
public void Should_Throw_If_Pandoc_Executable_Was_Not_Found() { var fixture = new PandocRunnerFixture(); fixture.GivenDefaultToolDoNotExist(); const string expectedMessage = "Pandoc: Could not locate executable."; Action result = () => fixture.Run(); Assert.That(result, Throws.TypeOf <CakeException>().With.Message.EqualTo(expectedMessage)); }