コード例 #1
0
 public void Parse_uspSearchCandidateResumes_NoWhitespace()
 {
     using (StringReader reader = new StringReader(Resources.AdventureWorks2014_dbo_uspSearchCandidateResumes))
         using (TSQLTokenizer lexer = new TSQLTokenizer(reader))
         {
             TokenComparisons.CompareStreamStartToList(
                 GetuspSearchCandidateResumesTokens()
                 .Where(t => !(t is TSQLWhitespace)).ToList(),
                 lexer);
         }
 }
コード例 #2
0
 public void Parse_uspSearchCandidateResumes()
 {
     using (StringReader reader = new StringReader(Resources.AdventureWorks2014_dbo_uspSearchCandidateResumes))
         using (TSQLTokenizer lexer = new TSQLTokenizer(reader)
         {
             IncludeWhitespace = true
         })
         {
             TokenComparisons.CompareStreamStartToList(
                 GetuspSearchCandidateResumesTokens(),
                 lexer);
         }
 }
コード例 #3
0
        public void Parse_uspSearchCandidateResumes_NoWhitespace()
        {
            using (StringReader reader = new StringReader(Resources.AdventureWorks2014_dbo_uspSearchCandidateResumes))
                using (TSQLTokenizer lexer = new TSQLTokenizer(reader))
                {
                    Assert.IsFalse(lexer.IncludeWhitespace);
                    Assert.IsFalse(lexer.UseQuotedIdentifiers);

                    TokenComparisons.CompareStreamStartToList(
                        GetuspSearchCandidateResumesTokens()
                        .Where(t => !(t is TSQLWhitespace)).ToList(),
                        lexer);
                }
        }