public void WithConfigurationOverride_CorrectInputs_GetsAddedToAdditionalArguments() { var cmd = new DummyCommand(); cmd.WithConfigurationOverride("section123", "name456", "value789"); CollectionAssert.AreEqual( cmd.AdditionalArguments, new[] { "--config", "section123.name456=\"value789\"", }); }
public void WithConfigurationOverride_NullValue_ThrowsArgumentNullException() { var cmd = new DummyCommand(); Assert.Throws <ArgumentNullException>(() => cmd.WithConfigurationOverride("section", "name", null)); }
public void WithConfigurationOverride_NullOrEmptyName_ThrowsArgumentNullException(string input) { var cmd = new DummyCommand(); Assert.Throws <ArgumentNullException>(() => cmd.WithConfigurationOverride("section", input, "value")); }