mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
- 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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user