public void TestCommandLineArgs() { var data = new InstallCommandActionData(); data.ParseCommandLine(new string[] { "PROPERTY=VALUE", "REINSTALL=ALL" }); Assert.AreEqual("PROPERTY=VALUE REINSTALL=ALL", data.CommandLine); Assert.AreEqual <long>(PackageInfo.DefaultWeight, data.Weight); }
public void TestEmptyCommandLineArgs() { var data = new InstallCommandActionData(); data.ParseCommandLine(new string[] { }); Assert.IsNull(data.CommandLine); Assert.AreEqual <long>(PackageInfo.DefaultWeight, data.Weight); }