public void RunStartedTest18()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$1$"] = "#DecodeSpecialChars Line\\nLine2\\\"\\r\\t\\\\";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual("Line\nLine2\"\r\t\\", dic["$1$"]);
        }
        public void RunStartedTest16()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$1$"] = "#Execute -fileName cmd -args \"/C echo xxx xxx\" -waitTime 0 -returnOutput";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual("xxx xxx", dic["$1$"]);
        }
        public void RunStartedTest14()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$a$"] = "#GetValue -assemblyName mscorlib -className System.DateTime -isStatic -propertyName Today";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual(DateTime.Today.ToString(CultureInfo.InvariantCulture), dic["$a$"]);
        }
        public void RunStartedTest13()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$a$"] = "#GetValue -assemblyName Vespertan.CustomParametersWizardTests -className Vespertan.CustomParametersWizardTests.TestData -methodName DoubleValue -separator |";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual("1.3", dic["$a$"]);
        }
        public void RunStartedTest11()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$a$"] = "#GetValue -assemblyName Vespertan.CustomParametersWizardTests -className Vespertan.CustomParametersWizardTests.TestData -isStatic -propertyName List -resultPropertyName Key -separator |";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual("1|2", dic["$a$"]);
        }
        public void RunStartedTest20()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$1$"] = "Get Date Time\nXXXXXX\n";
            dic["$2$"] = "#SaveText -fileName test.txt -append -text \"$1$\"";


            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.IsTrue(File.Exists(dic["$2$"]));
        }
        public void RunStartedTest21()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$1$"] = "#SaveText -fileName test1.txt -text XXXX";

            dic["$2$"] = "#LoadText -fileName test1.txt";


            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual("XXXX", dic["$2$"]);
        }
        public void RunStartedTest19()
        {
            var cpw = new CustomParametersWizard();
            var t   = cpw.GetType();
            var dic = new Dictionary <string, string>();

            dic["$1$"] = "#GetDateTime";
            dic["$2$"] = "#SetDateTimeFormat yyyy-MM-dd";
            dic["$3$"] = "#GetDateTime";

            cpw.RunStarted(null, dic, WizardRunKind.AsNewItem, null);

            Assert.AreEqual(DateTime.Now.ToString(CultureInfo.InvariantCulture), dic["$1$"]);
            Assert.AreEqual(DateTime.Now.ToString("yyyy-MM-dd"), dic["$3$"]);
        }