public void TestSemiColonProcessor_SimpleReplace() { var p = new ScriptProcessing.SqliteScriptProcessor(); string test = "A;\n"; var d = new Dictionary <string, string>(); d.Add("A", "B"); IList <string> reponse = p.ProcessScript(test, d); Assert.IsTrue(reponse[0] == "B;"); }
public void TestSemiColonProcessor_Breaker() { var p = new ScriptProcessing.SqliteScriptProcessor(); string test = "A;\r\nA;\r\nA;\nA;\nA;\n A;\n A;\n A;\nA;\n A;\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 TestSemiColonProcessor_SimpleReplace() { var p = new ScriptProcessing.SqliteScriptProcessor(); string test = "A;\n"; var d = new Dictionary<string, string>(); d.Add("A", "B"); IList<string> reponse = p.ProcessScript(test, d); Assert.IsTrue(reponse[0]=="B;"); }
public void TestSemiColonProcessor_Breaker() { var p = new ScriptProcessing.SqliteScriptProcessor(); string test = "A;\r\nA;\r\nA;\nA;\nA;\n A;\n A;\n A;\nA;\n A;\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;"); } }