- Ensure minimum of 2 newlines after GO statement
- All existing unit tests are passing, indicating this is respecting scenarios where users have comment lines after GO statements (this happens in many other tests)
This commit is contained in:
Kevin Cunnane
2017-03-16 10:20:22 -07:00
committed by GitHub
parent 7ba2011a1e
commit 8d017368f9
5 changed files with 38 additions and 2 deletions

View File

@@ -10,6 +10,20 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.Formatter
{
public class GeneralFormatterTests : FormatterUnitTestsBase
{
[Fact]
public void GoNewLineShouldBePreserved()
{
LoadAndFormatAndCompare("GoNewLineShouldBePreserved",
GetInputFile("Go.sql"),
GetBaselineFile("Go_NewlineHandling.sql"),
new FormatOptions() {
KeywordCasing = CasingOptions.Lowercase,
DatatypeCasing = CasingOptions.Uppercase,
PlaceEachReferenceOnNewLineInQueryStatements = true
},
verifyFormat: true);
}
[Fact]
public void KeywordCaseConversionUppercase()
{