Ejemplo n.º 1
0
        public void TestGOProcessor_SimpleReplace()
        {
            var    p    = new ScriptProcessing.SqlServerScriptProcessor();
            string test = "A;\nGO\n";
            var    d    = new Dictionary <string, string>();

            d.Add("A", "B");
            IList <string> reponse = p.ProcessScript(test, d);

            Assert.IsTrue(reponse[0] == "B;\n");
        }
Ejemplo n.º 2
0
        public void TestGOProcessor_Breaker()
        {
            var    p    = new ScriptProcessing.SqlServerScriptProcessor();
            string test = "AGO\r\nA\r\nGO\nA\nGO\n\nA\n  GO\nA\nGO\n  ";
            var    d    = new Dictionary <string, string>();

            d.Add("A", "B");
            IList <string> reponse = p.ProcessScript(test, d);

            foreach (string s in reponse)
            {
                Assert.IsTrue(s.Trim() == "B");
            }
        }
        public void TestGOProcessor_SimpleReplace()
        {
            var p = new ScriptProcessing.SqlServerScriptProcessor();
            string test = "A;\nGO\n";
            var d = new Dictionary<string, string>();
            d.Add("A", "B");
            IList<string> reponse = p.ProcessScript(test, d);

            Assert.IsTrue(reponse[0] == "B;\n");
        }
 public void TestGOProcessor_Breaker()
 {
     var p = new ScriptProcessing.SqlServerScriptProcessor();
     string test = "AGO\r\nA\r\nGO\nA\nGO\n\nA\n  GO\nA\nGO\n  ";
     var d = new Dictionary<string, string>();
     d.Add("A", "B");
     IList<string> reponse = p.ProcessScript(test, d);
     foreach (string s in reponse)
     {
         Assert.IsTrue(s.Trim() == "B");
     }
 }