コード例 #1
0
        public void SqlFormatterTests_ReturnsCorrectResult_ForUncasableInput(string input)
        {
            var keywords              = TSqlKeywordProvider.Get();
            var keywordsRegex         = SqlKeywordsProvider.GetKeywordsRegex(keywords);
            SqlFormatterResult output = null;

            Assert.DoesNotThrow(() => output = Classes.SqlFormatter.Format(keywordsRegex, input));

            Assert.NotNull(output);
            Assert.False(output.Changed);
            Assert.Zero(output.NumReplacements);
            Assert.AreEqual(input, output.Result);
            Assert.True(output.Verified);
        }
コード例 #2
0
        public void SetUp()
        {
            var keywords = TSqlKeywordProvider.Get();

            _keywordsRegex = SqlKeywordsProvider.GetKeywordsRegex(keywords);
        }