Ejemplo n.º 1
0
        public void Test_SplitCommandLine_QuotesInStrings()
        {
            var vals = ExecuteCommandRunner.SplitCommandLine("NewObject CatalogueItem bb\"'bb'").ToArray();

            Assert.AreEqual("NewObject", vals[0]);
            Assert.AreEqual("CatalogueItem", vals[1]);
            Assert.AreEqual("bb\"'bb'", vals[2]);
        }
Ejemplo n.º 2
0
        public void Test_SplitCommandLine()
        {
            var vals = ExecuteCommandRunner.SplitCommandLine("NewObject CatalogueItem 'Catalogue:\"fff\"' 'bbbb'").ToArray();

            Assert.AreEqual("NewObject", vals[0]);
            Assert.AreEqual("CatalogueItem", vals[1]);
            Assert.AreEqual("Catalogue:\"fff\"", vals[2]);
            Assert.AreEqual("bbbb", vals[3]);
        }