36 references to TestNormalizeExpression
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (36)
Syntax\SyntaxNormalizerTests.vb (36)
33TestNormalizeExpression("+1", "+1")
34TestNormalizeExpression("+a", "+a")
35TestNormalizeExpression("-a", "-a")
37TestNormalizeExpression("a", "a")
38TestNormalizeExpression("a+b", "a + b")
39TestNormalizeExpression("a-b", "a - b")
40TestNormalizeExpression("a*b", "a * b")
41TestNormalizeExpression("a/b", "a / b")
42TestNormalizeExpression("a mod b", "a mod b")
43TestNormalizeExpression("a xor b", "a xor b")
44TestNormalizeExpression("a or b", "a or b")
45TestNormalizeExpression("a and b", "a and b")
46TestNormalizeExpression("a orelse b", "a orelse b")
47TestNormalizeExpression("a andalso b", "a andalso b")
48TestNormalizeExpression("a<b", "a < b")
49TestNormalizeExpression("a<=b", "a <= b")
50TestNormalizeExpression("a>b", "a > b")
51TestNormalizeExpression("a>=b", "a >= b")
52TestNormalizeExpression("a=b", "a = b")
53TestNormalizeExpression("a<>b", "a <> b")
54TestNormalizeExpression("a<<b", "a << b")
55TestNormalizeExpression("a>>b", "a >> b")
57TestNormalizeExpression("(a+b)", "(a + b)")
58TestNormalizeExpression("((a)+(b))", "((a) + (b))")
59TestNormalizeExpression("(a)", "(a)")
60TestNormalizeExpression("(a)(b)", "(a)(b)")
62TestNormalizeExpression("m()", "m()")
63TestNormalizeExpression("m(a)", "m(a)")
64TestNormalizeExpression("m(a,b)", "m(a, b)")
65TestNormalizeExpression("m(a,b,c)", "m(a, b, c)")
66TestNormalizeExpression("m(a,b(c,d))", "m(a, b(c, d))")
67TestNormalizeExpression("m( , ,, )", "m(,,,)")
68TestNormalizeExpression("a(b(c(0)))", "a(b(c(0)))")
70TestNormalizeExpression("if(a,b,c)", "if(a, b, c)")
72TestNormalizeExpression("a().b().c()", "a().b().c()")
74TestNormalizeExpression("""aM5b"" Like ""a[L-P]#[!c-e]a?""", """aM5b"" Like ""a[L-P]#[!c-e]a?""")