コード例 #1
0
        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);
        }
コード例 #2
0
        public void TestEmptyCommandLineArgs()
        {
            var data = new InstallCommandActionData();

            data.ParseCommandLine(new string[] { });

            Assert.IsNull(data.CommandLine);
            Assert.AreEqual <long>(PackageInfo.DefaultWeight, data.Weight);
        }