197 references to VerifyTrue
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (197)
Extensions\ContextQuery\IsPossibleDeconstructionDesignationTests.cs (21)
26=> VerifyTrue(AddInsideMethod(@"(var $$, var y)")); 30=> VerifyTrue(AddInsideMethod(@"(var $$, var y) = e;")); 34=> VerifyTrue(AddInsideMethod(@"(var x, var $$)")); 38=> VerifyTrue(AddInsideMethod(@"var ($$, y)")); 42=> VerifyTrue(AddInsideMethod(@"var ($$, y)")); 46=> VerifyTrue(AddInsideMethod(@"var ($$)")); 50=> VerifyTrue(AddInsideMethod(@"(var $$)")); 54=> VerifyTrue(AddInsideMethod(@"(var a, var $$)")); 62=> VerifyTrue(AddInsideMethod(@"Func<int, int, int> f = (x, i $$")); 66=> VerifyTrue(AddInsideMethod(@"var (($$), y)")); 70=> VerifyTrue(AddInsideMethod(@"var ((x, $$), y)")); 74=> VerifyTrue(AddInsideMethod(@"var ((x, $$), y) = e;")); 78=> VerifyTrue(AddInsideMethod(@"foreach(var ($$")); 82=> VerifyTrue(AddInsideMethod(@"foreach(var ($$)")); 86=> VerifyTrue(AddInsideMethod(@"foreach(var ($$))")); 90=> VerifyTrue(AddInsideMethod(@"foreach(var (x, $$")); 94=> VerifyTrue(AddInsideMethod(@"foreach(var ($$) in ")); 98=> VerifyTrue(AddInsideMethod(@"foreach(var (($$), y)")); 102=> VerifyTrue(AddInsideMethod(@"foreach(var (($$), y) in ")); 106=> VerifyTrue(AddInsideMethod(@"foreach(var ((x, $$), y)")); 110=> VerifyTrue(AddInsideMethod(@"foreach(var ((x, $$), y) in "));
Extensions\ContextQuery\NamespaceContextTests.cs (85)
22=> VerifyTrue(@"$$"); 26=> VerifyTrue(@"using $$"); 45VerifyTrue(""" 78=> VerifyTrue(@"[assembly: $$]"); 83VerifyTrue(""" 91=> VerifyTrue(@"class CL<[A$$]T> {}"); 96VerifyTrue(""" 107VerifyTrue(""" 117VerifyTrue(""" 148=> VerifyTrue(@"using MyType = $$"); 157VerifyTrue(""" 166VerifyTrue(""" 174=> VerifyTrue(AddInsideMethod(@"var t = $$)c")); 186=> VerifyTrue(AddInsideMethod(@"var t = ($$)c")); 190=> VerifyTrue(AddInsideMethod(@"var t = new $$")); 194=> VerifyTrue(AddInsideMethod(@"var t = new $$ [")); 198=> VerifyTrue(AddInsideMethod(@"var t = stackalloc $$")); 202=> VerifyTrue(AddInsideMethod(@"var t = from $$ c")); 206=> VerifyTrue(AddInsideMethod(@"var t = from c in C join $$ j")); 210=> VerifyTrue(AddInsideMethod(@"$$ i =")); 214=> VerifyTrue(AddInsideMethod(@"fixed($$")); 218=> VerifyTrue(AddInsideMethod(@"foreach($$")); 226=> VerifyTrue(AddInsideMethod(@"try {} catch($$")); 231VerifyTrue(""" 240VerifyTrue(""" 249VerifyTrue(""" 267VerifyTrue(""" 276VerifyTrue(""" 285VerifyTrue(""" 294VerifyTrue(""" 303VerifyTrue(""" 312VerifyTrue(""" 321VerifyTrue(""" 330VerifyTrue(""" 339VerifyTrue(""" 348VerifyTrue(""" 356=> VerifyTrue(AddInsideMethod(@"($$")); 360=> VerifyTrue(AddInsideMethod(@"$$(")); 364=> VerifyTrue(AddInsideMethod(@"$$[")); 368=> VerifyTrue(AddInsideMethod(@"i[$$")); 372=> VerifyTrue(AddInsideMethod(@"(c)$$")); 376=> VerifyTrue(AddInsideMethod(@"var t = from c in $$")); 380=> VerifyTrue(AddInsideMethod(@"var t = from c in C let n = $$")); 384=> VerifyTrue(AddInsideMethod(@"var t = from c in C orderby $$")); 388=> VerifyTrue(AddInsideMethod(@"var t = from c in C select $$")); 392=> VerifyTrue(AddInsideMethod(@"$$")); 396=> VerifyTrue(AddInsideMethod(@"return $$")); 400=> VerifyTrue(AddInsideMethod(@"throw $$")); 404=> VerifyTrue(AddInsideMethod(@"yield return $$")); 408=> VerifyTrue(AddInsideMethod(@"foreach(T t in $$")); 412=> VerifyTrue(AddInsideMethod(@"using($$")); 416=> VerifyTrue(AddInsideMethod(@"lock($$")); 420=> VerifyTrue(AddInsideMethod(@"var i = $$")); 424=> VerifyTrue(AddInsideMethod(@"for($$")); 428=> VerifyTrue(AddInsideMethod(@"for(i=0;$$")); 432=> VerifyTrue(AddInsideMethod(@"for(i=0;i>10;$$")); 436=> VerifyTrue(AddInsideMethod(@"do {} while($$")); 440=> VerifyTrue(AddInsideMethod(@"while($$")); 444=> VerifyTrue(AddInsideMethod(@"int [$$")); 448=> VerifyTrue(AddInsideMethod(@"+$$")); 452=> VerifyTrue(AddInsideMethod(@"$$++")); 456=> VerifyTrue(AddInsideMethod(@"$$ + 1")); 460=> VerifyTrue(AddInsideMethod(@"1 + $$")); 464=> VerifyTrue(AddInsideMethod(@"$$ = 1")); 468=> VerifyTrue(AddInsideMethod(@"1 = $$")); 472=> VerifyTrue(AddInsideMethod(@"$$? 1:")); 476=> VerifyTrue(AddInsideMethod(@"true? $$:")); 480=> VerifyTrue(AddInsideMethod(@"true? 1:$$")); 484=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in $$")); 488=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in P on $$")); 492=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in P on id equals $$")); 496=> VerifyTrue(AddInsideMethod(@"var t = from c in C where $$")); 500=> VerifyTrue(AddInsideMethod(@"var t = from c in C group $$")); 504=> VerifyTrue(AddInsideMethod(@"var t = from c in C group g by $$")); 508=> VerifyTrue(AddInsideMethod(@"if ($$")); 512=> VerifyTrue(AddInsideMethod(@"switch($$")); 517VerifyTrue(AddInsideMethod(""" 526=> VerifyTrue(AddInsideMethod(@"var t = new [] { $$")); 530=> VerifyTrue(@"class CL<T> where T : $$"); 534=> VerifyTrue(@"class CL<T> where T : A, $$"); 542=> VerifyTrue(@"class CL : $$"); 546=> VerifyTrue(@"class CL : B, $$"); 554=> VerifyTrue(AddInsideMethod(@"global::$$")); 570=> VerifyTrue(@"class C { void IGoo<$$>.Method("); 574=> VerifyTrue(@"class C { void IGoo<T,$$>.Method(");
Extensions\ContextQuery\PossibleTupleContextTests.cs (8)
28VerifyTrue(x); 29VerifyTrue(AddInsideClass(x)); 30VerifyTrue(AddInsideMethod(x)); 67=> VerifyTrue(@"class C : I<($$"); 71=> VerifyTrue(@"class C : I<(a, $$"); 75=> VerifyTrue(AddInsideMethod(@"(var $$)")); 79=> VerifyTrue(AddInsideMethod(@"(var a, var $$)")); 83=> VerifyTrue(AddInsideMethod(@"var str = (($$)items) as string;"));
Extensions\ContextQuery\TypeContextTests.cs (83)
22=> VerifyTrue(@"$$"); 45VerifyTrue(""" 78=> VerifyTrue(@"[assembly: $$]"); 83VerifyTrue(""" 91=> VerifyTrue(@"class CL<[A$$]T> {}"); 96VerifyTrue(""" 107VerifyTrue(""" 117VerifyTrue(""" 148=> VerifyTrue(@"using MyType = $$"); 153VerifyTrue(""" 162VerifyTrue(""" 170=> VerifyTrue(AddInsideMethod(@"var t = $$)c")); 182=> VerifyTrue(AddInsideMethod(@"var t = ($$)c")); 186=> VerifyTrue(AddInsideMethod(@"var t = new $$")); 190=> VerifyTrue(AddInsideMethod(@"var t = new $$ [")); 194=> VerifyTrue(AddInsideMethod(@"var t = stackalloc $$")); 198=> VerifyTrue(AddInsideMethod(@"var t = from $$ c")); 202=> VerifyTrue(AddInsideMethod(@"var t = from c in C join $$ j")); 206=> VerifyTrue(AddInsideMethod(@"$$ i =")); 210=> VerifyTrue(AddInsideMethod(@"fixed($$")); 214=> VerifyTrue(AddInsideMethod(@"foreach($$")); 222=> VerifyTrue(AddInsideMethod(@"try {} catch($$")); 227VerifyTrue(""" 236VerifyTrue(""" 245VerifyTrue(""" 263VerifyTrue(""" 272VerifyTrue(""" 281VerifyTrue(""" 290VerifyTrue(""" 299VerifyTrue(""" 308VerifyTrue(""" 317VerifyTrue(""" 326VerifyTrue(""" 335VerifyTrue(""" 344VerifyTrue(""" 352=> VerifyTrue(AddInsideMethod(@"($$")); 356=> VerifyTrue(AddInsideMethod(@"$$(")); 360=> VerifyTrue(AddInsideMethod(@"$$[")); 364=> VerifyTrue(AddInsideMethod(@"i[$$")); 368=> VerifyTrue(AddInsideMethod(@"(c)$$")); 372=> VerifyTrue(AddInsideMethod(@"var t = from c in $$")); 376=> VerifyTrue(AddInsideMethod(@"var t = from c in C let n = $$")); 380=> VerifyTrue(AddInsideMethod(@"var t = from c in C orderby $$")); 384=> VerifyTrue(AddInsideMethod(@"var t = from c in C select $$")); 388=> VerifyTrue(AddInsideMethod(@"$$")); 392=> VerifyTrue(AddInsideMethod(@"return $$")); 396=> VerifyTrue(AddInsideMethod(@"throw $$")); 400=> VerifyTrue(AddInsideMethod(@"yield return $$")); 404=> VerifyTrue(AddInsideMethod(@"foreach(T t in $$")); 408=> VerifyTrue(AddInsideMethod(@"using($$")); 412=> VerifyTrue(AddInsideMethod(@"lock($$")); 416=> VerifyTrue(AddInsideMethod(@"var i = $$")); 420=> VerifyTrue(AddInsideMethod(@"for($$")); 424=> VerifyTrue(AddInsideMethod(@"for(i=0;$$")); 428=> VerifyTrue(AddInsideMethod(@"for(i=0;i>10;$$")); 432=> VerifyTrue(AddInsideMethod(@"do {} while($$")); 436=> VerifyTrue(AddInsideMethod(@"while($$")); 440=> VerifyTrue(AddInsideMethod(@"int [$$")); 444=> VerifyTrue(AddInsideMethod(@"+$$")); 448=> VerifyTrue(AddInsideMethod(@"$$++")); 452=> VerifyTrue(AddInsideMethod(@"$$ + 1")); 456=> VerifyTrue(AddInsideMethod(@"1 + $$")); 460=> VerifyTrue(AddInsideMethod(@"$$ = 1")); 464=> VerifyTrue(AddInsideMethod(@"1 = $$")); 468=> VerifyTrue(AddInsideMethod(@"$$? 1:")); 472=> VerifyTrue(AddInsideMethod(@"true? $$:")); 476=> VerifyTrue(AddInsideMethod(@"true? 1:$$")); 480=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in $$")); 484=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in P on $$")); 488=> VerifyTrue(AddInsideMethod(@"var t = from c in C join p in P on id equals $$")); 492=> VerifyTrue(AddInsideMethod(@"var t = from c in C where $$")); 496=> VerifyTrue(AddInsideMethod(@"var t = from c in C group $$")); 500=> VerifyTrue(AddInsideMethod(@"var t = from c in C group g by $$")); 504=> VerifyTrue(AddInsideMethod(@"if ($$")); 508=> VerifyTrue(AddInsideMethod(@"switch($$")); 513VerifyTrue(AddInsideMethod(""" 522=> VerifyTrue(AddInsideMethod(@"var t = new [] { $$")); 526=> VerifyTrue(@"class CL<T> where T : $$"); 530=> VerifyTrue(@"class CL<T> where T : A, $$"); 538=> VerifyTrue(@"class CL : $$"); 542=> VerifyTrue(@"class CL : B, $$"); 566=> VerifyTrue(@"class C { void IGoo<$$>.Method("); 570=> VerifyTrue(@"class C { void IGoo<T,$$>.Method(");