public void Should_Redirect_Standard_Error() { var fixture = new Ef6DatabaseUpdateToolFixture(); fixture.Settings.RedirectStandardError = true;; var result = fixture.Run(); Assert.True(result.Process.RedirectStandardError); }
public void Should_Add_Force_To_Arguments_If_Not_False(bool value, string expected) { // Given var fixture = new Ef6DatabaseUpdateToolFixture(); fixture.Settings.Force = value; // When var result = fixture.Run(); // Then Assert.Equal(expected, result.Args); }
public void Should_Add_Configuration_File_Path_To_Arguments(string value, string expected) { // Given var fixture = new Ef6DatabaseUpdateToolFixture(); fixture.Settings.ConfigurationFile = value; // When var result = fixture.Run(); // Then Assert.Equal(expected, result.Args); }
public void Should_Add_Target_To_Arguments(string value, string expected) { // Given var fixture = new Ef6DatabaseUpdateToolFixture(); fixture.Settings.Target = value; // When var result = fixture.Run(); // Then Assert.Equal(expected, result.Args); }
public void Should_Throw_If_Settings_Are_Null() { // Given var fixture = new Ef6DatabaseUpdateToolFixture(); fixture.Settings = null; // When var result = Record.Exception(() => fixture.Run()); // Then result.IsArgumentNullException("settings"); }