コード例 #1
0
ファイル: Field.cs プロジェクト: built/BoxBoy
        public string toSql()
        {
            StringTheory theory = new StringTheory(this);
            string       phrase = "'";

            theory.Replace(phrase, phrase + phrase);
            theory.SingleQuote();
            return(theory.ToString());
        }
コード例 #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!");
 }