private void AssertThatSqlCasedCorrectly(string expected, SqlFormatterResult output) { Assert.NotNull(output); Assert.True(output.Changed); Assert.True(output.Verified); Assert.AreEqual(expected, output.Result); }
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); }