public string toSql() { StringTheory theory = new StringTheory(this); string phrase = "'"; theory.Replace(phrase, phrase + phrase); theory.SingleQuote(); return(theory.ToString()); }
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!"); }