Ejemplo n.º 1
0
        public string toSql()
        {
            StringTheory theory = new StringTheory(this);
            string       phrase = "'";

            theory.Replace(phrase, phrase + phrase);
            theory.SingleQuote();
            return(theory.ToString());
        }
Ejemplo n.º 2
0
 public void testSingleQuote()
 {
     string str = "'abcdef'";
     StringTheory theory = new StringTheory("abcdef");
     theory.SingleQuote();
     Assert.True(str.Equals(theory.ToString()), "str doesn't match the comparison string!");
 }