22 references to TestNormalizeStatement
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (22)
Syntax\SyntaxNormalizerTests.vb (22)
103TestNormalizeStatement("while a<b" + vbCrLf + "goo:" + vbCrLf + "c" + vbCrLf + "end while", "while a < b" + vbCrLf + "goo:" + vbCrLf + " c" + vbCrLf + "end while") 513TestNormalizeStatement("a", "a") 516TestNormalizeStatement("if a then b", "if a then b") 517TestNormalizeStatement("if a then b else c", "if a then b else c") 518TestNormalizeStatement("if a then b else if c then d else e", "if a then b else if c then d else e") 519TestNormalizeStatement("if a then b else if c then d else e", "if a then b else if c then d else e") 520TestNormalizeStatement("if " + vbTab + " a then b else if c then d else e", "if a then b else if c then d else e") 521TestNormalizeStatement("if a then" + vbCrLf + "b" + vbCrLf + "end if", "if a then" + vbCrLf + " b" + vbCrLf + "end if") 522TestNormalizeStatement("if a then" + vbCrLf + vbCrLf + vbCrLf + "b" + vbCrLf + "end if", "if a then" + vbCrLf + " b" + vbCrLf + "end if") 523TestNormalizeStatement("if a then" + vbCrLf + "if a then" + vbCrLf + "b" + vbCrLf + "end if" + vbCrLf + "else" + vbCrLf + "b" + vbCrLf + "end if", 527TestNormalizeStatement("if a then _" + vbCrLf + "b _" + vbCrLf + "else c", "if a then b else c") 528TestNormalizeStatement("if a then:b:end if", "if a then : b : end if") 549TestNormalizeStatement("while a<b" + vbCrLf + "c " + vbCrLf + "end while", "while a < b" + vbCrLf + " c" + vbCrLf + "end while") 551TestNormalizeStatement("DO until a(2)<>12" + vbCrLf + 559TestNormalizeStatement("DO while a(2)<>12" + vbCrLf + 567TestNormalizeStatement("DO " + vbCrLf + 575TestNormalizeStatement("DO " + vbCrLf + 583TestNormalizeStatement("For Each i In x" + vbCrLf + 591TestNormalizeStatement("For Each i In x" + vbCrLf + 605TestNormalizeStatement(" try" + vbCrLf + 629TestNormalizeStatement(" Using r1 As R = New R ( ) , r2 As R = New R( )" + vbCrLf + 641TestNormalizeStatement(" Dim waCusts = _" + vbCrLf +