public void Should_Change_Process_Working_Directory(string dir, string expected) { // Given var fixture = new MkDocsServeRunnerFixture(); fixture.GivenProjectDirectory(dir); // When var result = fixture.Run(); // Then Assert.Equal(expected, result.Process.WorkingDirectory.FullPath); }
public void Should_Throw_For_Empty_Project_Dir() { // Given var fixture = new MkDocsServeRunnerFixture(); fixture.GivenProjectDirectory(null); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsType <ArgumentNullException>(result); Assert.Equal("projectDirectory", ((ArgumentNullException)result).ParamName); }