Esempio n. 1
0
 public void WriteKeyword_WritesKeyword()
 {
     var builder = new StringBuilder();
     using (var writer = new TestSqlWriter(builder))
     {
         writer.WriteKeyword(SqlKeywords.Select);
     }
     Assert.Equal("SELECT", builder.ToString());
 }
Esempio n. 2
0
        public void WriteKeyword_WithWriteKeywordsInLowerCase_WritesKeywordsInLowerCase()
        {
            var builder = new StringBuilder();
            var settings = new SqlWriterSettings
            {
                WriteKeywordsInLowerCase = true
            };

            using (var writer = new TestSqlWriter(builder, settings))
            {
                writer.WriteKeyword(SqlKeywords.Select);
            }

            Assert.Equal("select", builder.ToString());
        }