public void TestArgs14()
        {
            String cmd = "cmd arg1 \"arg2\" arg3";

            DummyConsole c = new DummyConsole();
            AssertResult(c.extractArgs(cmd), "cmd", "arg1", "arg2", "arg3");
        }
        public void TestArgs16()
        {
            String cmd = "cmd arg1 arg2 arg3\"";

            DummyConsole c = new DummyConsole();
            Assert.IsNull(c.extractArgs(cmd), "cmd");
        }
        public void TestArgs11()
        {
            String cmd = "cmd \"\"";

            DummyConsole c = new DummyConsole();
            AssertResult(c.extractArgs(cmd), "cmd", "");
        }
Ejemplo n.º 4
0
        public void TestArgs9()
        {
            String cmd = @"cmd  arg1  arg2";

            DummyConsole c = new DummyConsole();

            AssertResult(c.extractArgs(cmd), "cmd", "arg1", "arg2");
        }
Ejemplo n.º 5
0
        public void TestArgs7()
        {
            String cmd = @"cmd   ";

            DummyConsole c = new DummyConsole();

            AssertResult(c.extractArgs(cmd), "cmd");
        }
Ejemplo n.º 6
0
        public void TestArgs17()
        {
            String cmd = "cmd \"arg1 arg2\"\"\" arg3\"";

            DummyConsole c = new DummyConsole();

            Assert.IsNull(c.extractArgs(cmd), "cmd");
        }
Ejemplo n.º 7
0
        public void TestArgs15()
        {
            String cmd = "cmd arg1 \"arg2 arg3";

            DummyConsole c = new DummyConsole();

            Assert.IsNull(c.extractArgs(cmd), "cmd");
        }
Ejemplo n.º 8
0
        public void TestArgs14()
        {
            String cmd = "cmd arg1 \"arg2\" arg3";

            DummyConsole c = new DummyConsole();

            AssertResult(c.extractArgs(cmd), "cmd", "arg1", "arg2", "arg3");
        }
Ejemplo n.º 9
0
        public void TestArgs11()
        {
            String cmd = "cmd \"\"";

            DummyConsole c = new DummyConsole();

            AssertResult(c.extractArgs(cmd), "cmd", "");
        }
        public void TestArgs2()
        {
            String cmd = @"cmd arg1";

            DummyConsole c = new DummyConsole();
            AssertResult(c.extractArgs(cmd), "cmd", "arg1");
        }