212 references to TestNormalizeExpression
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (212)
Syntax\SyntaxNormalizerTests.cs (212)
284TestNormalizeExpression(""" 295TestNormalizeExpression("""" 350TestNormalizeExpression("!a", "!a"); 351TestNormalizeExpression("-a", "-a"); 352TestNormalizeExpression("+a", "+a"); 353TestNormalizeExpression("~a", "~a"); 355TestNormalizeExpression("a", "a"); 356TestNormalizeExpression("a+b", "a + b"); 357TestNormalizeExpression("a-b", "a - b"); 358TestNormalizeExpression("a*b", "a * b"); 359TestNormalizeExpression("a/b", "a / b"); 360TestNormalizeExpression("a%b", "a % b"); 361TestNormalizeExpression("a^b", "a ^ b"); 362TestNormalizeExpression("a|b", "a | b"); 363TestNormalizeExpression("a&b", "a & b"); 364TestNormalizeExpression("a||b", "a || b"); 365TestNormalizeExpression("a&&b", "a && b"); 366TestNormalizeExpression("a<b", "a < b"); 367TestNormalizeExpression("a<=b", "a <= b"); 368TestNormalizeExpression("a>b", "a > b"); 369TestNormalizeExpression("a>=b", "a >= b"); 370TestNormalizeExpression("a==b", "a == b"); 371TestNormalizeExpression("a!=b", "a != b"); 372TestNormalizeExpression("a<<b", "a << b"); 373TestNormalizeExpression("a>>b", "a >> b"); 374TestNormalizeExpression("a>>>b", "a >>> b"); 375TestNormalizeExpression("a>>=b", "a >>= b"); 376TestNormalizeExpression("a>>>=b", "a >>>= b"); 377TestNormalizeExpression("a??b", "a ?? b"); 379TestNormalizeExpression("a<b>.c", "a<b>.c"); 380TestNormalizeExpression("(a+b)", "(a + b)"); 381TestNormalizeExpression("((a)+(b))", "((a) + (b))"); 382TestNormalizeExpression("(a)b", "(a)b"); 383TestNormalizeExpression("(a)(b)", "(a)(b)"); 385TestNormalizeExpression("m()", "m()"); 386TestNormalizeExpression("m(a)", "m(a)"); 387TestNormalizeExpression("m(a,b)", "m(a, b)"); 388TestNormalizeExpression("m(a,b,c)", "m(a, b, c)"); 389TestNormalizeExpression("m(a,b(c,d))", "m(a, b(c, d))"); 391TestNormalizeExpression("a?b:c", "a ? b : c"); 392TestNormalizeExpression( 399TestNormalizeExpression("a().b().c()", "a().b().c()"); 400TestNormalizeExpression("a->b->c", "a->b->c"); 401TestNormalizeExpression("global :: a", "global::a"); 403TestNormalizeExpression("(IList<int>)args", "(IList<int>)args"); 404TestNormalizeExpression("(IList<IList<int>>)args", "(IList<IList<int>>)args"); 405TestNormalizeExpression("(IList<IList<IList<int>>>)args", "(IList<IList<IList<int>>>)args"); 407TestNormalizeExpression("(IList<string?>)args", "(IList<string?>)args"); 817TestNormalizeExpression("( [ A ]x)=>x", "([A] x) => x"); 818TestNormalizeExpression("( [ A ]int x=1)=>x", "([A] int x = 1) => x"); 819TestNormalizeExpression( 826TestNormalizeExpression( 832TestNormalizeExpression( 844TestNormalizeExpression("int( x )=>x", "int (x) => x"); 845TestNormalizeExpression( 851TestNormalizeExpression(""" 857TestNormalizeExpression("(A,B)()=>(new A(),new B())", "(A, B) () => (new A(), new B())"); 858TestNormalizeExpression("A.B()=>null", "A.B () => null"); 859TestNormalizeExpression("A.B.C()=>null", "A.B.C () => null"); 860TestNormalizeExpression("int[]()=>null", "int[] () => null"); 861TestNormalizeExpression("A.B[]()=>null", "A.B[] () => null"); 862TestNormalizeExpression("A.B.C[]()=>null", "A.B.C[] () => null"); 863TestNormalizeExpression("int*()=>null", "int* () => null"); 864TestNormalizeExpression("A.B*()=>null", "A.B* () => null"); 865TestNormalizeExpression("A.B.C*()=>null", "A.B.C* () => null"); 871TestNormalizeExpression("( int x=1 )=>x", "(int x = 1) => x"); 872TestNormalizeExpression( 883TestNormalizeExpression("( params int []xs)=>xs.Length", "(params int[] xs) => xs.Length"); 884TestNormalizeExpression( 3135TestNormalizeExpression("typeof (T)", "typeof(T)"); 3138TestNormalizeExpression("sizeof (T)", "sizeof(T)"); 3141TestNormalizeExpression("default (T)", "default(T)"); 3176TestNormalizeExpression("checked (a)", "checked(a)"); 3179TestNormalizeExpression("unchecked (a)", "unchecked(a)"); 3182TestNormalizeExpression("__arglist (a)", "__arglist(a)"); 3188TestNormalizeExpression("$\"{3:C}\"", "$\"{3:C}\""); 3189TestNormalizeExpression("$\"{3: C}\"", "$\"{3: C}\""); 3195TestNormalizeExpression("""" 3200TestNormalizeExpression("""" 3205TestNormalizeExpression("""" 3210TestNormalizeExpression("""" 3216TestNormalizeExpression("""" 3221TestNormalizeExpression("""" 3226TestNormalizeExpression("""" 3231TestNormalizeExpression("""" 3236TestNormalizeExpression("""" 3241TestNormalizeExpression("""" 3246TestNormalizeExpression("""" 3251TestNormalizeExpression("""" 3257TestNormalizeExpression("""" 3262TestNormalizeExpression("""" 3267TestNormalizeExpression("""" 3272TestNormalizeExpression("""" 3361TestNormalizeExpression(@"$""Message is {a}""", @"$""Message is {a}"""); 3367TestNormalizeExpression("""" 3430TestNormalizeExpression("a/*b*/+c", "a /*b*/ + c"); 3431TestNormalizeExpression( 3436TestNormalizeExpression(""" 4242TestNormalizeExpression( 4248TestNormalizeExpression( 4256TestNormalizeExpression( 4264TestNormalizeExpression( 4270TestNormalizeExpression( 4278TestNormalizeExpression( 4286TestNormalizeExpression( 4292TestNormalizeExpression( 4300TestNormalizeExpression( 4308TestNormalizeExpression( 4319TestNormalizeExpression( 4332TestNormalizeExpression( 4345TestNormalizeExpression( 4358TestNormalizeExpression( 4369TestNormalizeExpression( 4382TestNormalizeExpression( 4395TestNormalizeExpression( 4408TestNormalizeExpression( 4419TestNormalizeExpression( 4432TestNormalizeExpression( 4445TestNormalizeExpression( 4458TestNormalizeExpression( 4474TestNormalizeExpression( 4492TestNormalizeExpression( 4510TestNormalizeExpression( 4528TestNormalizeExpression( 4546TestNormalizeExpression( 4562TestNormalizeExpression( 4580TestNormalizeExpression( 4598TestNormalizeExpression( 4616TestNormalizeExpression( 4634TestNormalizeExpression( 4650TestNormalizeExpression( 4668TestNormalizeExpression( 4686TestNormalizeExpression( 4704TestNormalizeExpression( 4843TestNormalizeExpression( 4849TestNormalizeExpression( 4858TestNormalizeExpression( 4867TestNormalizeExpression( 4876TestNormalizeExpression( 4886TestNormalizeExpression( 4892TestNormalizeExpression( 4901TestNormalizeExpression( 4910TestNormalizeExpression( 4919TestNormalizeExpression( 4929TestNormalizeExpression( 4938TestNormalizeExpression( 4947TestNormalizeExpression( 4956TestNormalizeExpression( 4966TestNormalizeExpression( 4975TestNormalizeExpression( 4984TestNormalizeExpression( 4993TestNormalizeExpression( 5003TestNormalizeExpression( 5012TestNormalizeExpression( 5021TestNormalizeExpression( 5030TestNormalizeExpression( 5040TestNormalizeExpression( 5049TestNormalizeExpression( 5058TestNormalizeExpression( 5067TestNormalizeExpression( 5077TestNormalizeExpression( 5086TestNormalizeExpression( 5175TestNormalizeExpression( 5181TestNormalizeExpression( 5190TestNormalizeExpression( 5199TestNormalizeExpression( 5208TestNormalizeExpression( 5218TestNormalizeExpression( 5227TestNormalizeExpression( 5236TestNormalizeExpression( 5245TestNormalizeExpression( 5255TestNormalizeExpression( 5264TestNormalizeExpression("new Dictionary<SomeClass,SomeOtherClass>(){[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),}", """ 5272TestNormalizeExpression("new Dictionary<SomeClass,SomeOtherClass>(){[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),}.Count", """ 5280TestNormalizeExpression("new Dictionary<SomeClass,SomeOtherClass>(){[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),[new SomeClass()]=new SomeOtherClass(),}[0]", """ 5289TestNormalizeExpression( 5298TestNormalizeExpression( 5361TestNormalizeExpression( 5367TestNormalizeExpression( 5375TestNormalizeExpression( 5383TestNormalizeExpression( 5394TestNormalizeExpression( 5407TestNormalizeExpression( 5420TestNormalizeExpression( 5433TestNormalizeExpression( 5449TestNormalizeExpression( 5467TestNormalizeExpression( 5485TestNormalizeExpression( 5503TestNormalizeExpression( 5567TestNormalizeExpression( 5576TestNormalizeExpression( 5601TestNormalizeExpression( 5610TestNormalizeExpression( 5621TestNormalizeExpression( 5630TestNormalizeExpression( 5641TestNormalizeExpression( 5650TestNormalizeExpression( 5661TestNormalizeExpression( 5670TestNormalizeExpression( 5680TestNormalizeExpression( 5689TestNormalizeExpression( 5701TestNormalizeExpression( 5710TestNormalizeExpression( 5723TestNormalizeExpression( 5738TestNormalizeExpression( 5763TestNormalizeExpression( 5778TestNormalizeExpression( 5803TestNormalizeExpression( 5816TestNormalizeExpression( 5937TestNormalizeExpression( 5943TestNormalizeExpression( 5946TestNormalizeExpression(