254 references to BoundReferences
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (252)
Symbols\CompilationCreationTests.cs (244)
136Assert.Equal(0, asm1[0].BoundReferences().Length); 138Assert.Equal(1, (from a in asm1[1].BoundReferences() where !a.IsMissing select a).Count()); 139Assert.Equal(1, (from a in asm1[1].BoundReferences() where object.ReferenceEquals(a, asm1[0]) select a).Count()); 156Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 157Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 158Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 169Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 170Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 187Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 188Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 189Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 202Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 203Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 206Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 207Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 208Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 209Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 246Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 247Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 248Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 263Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 264Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 269Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 270Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 271Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 272Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 293Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 294Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 295Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 296Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 297Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 361Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 362Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 363Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 383Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 384Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 385Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 386Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 456Assert.Equal(1, (from a in asm1[1].BoundReferences() where !a.IsMissing select a).Count()); 457Assert.Equal(1, (from a in asm1[1].BoundReferences() where ReferenceEquals(a, asm1[0]) select a).Count()); 467Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 468Assert.Equal(1, (from a in asm2[1].BoundReferences() where ReferenceEquals(a, asm2[0]) select a).Count()); 469Assert.Equal(1, (from a in asm2[1].BoundReferences() where ReferenceEquals(a, asm2[2]) select a).Count()); 480Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 481Assert.Equal(1, (from a in asm2[2].BoundReferences() where ReferenceEquals(a, asm2[0]) select a).Count()); 489Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 490Assert.Equal(1, (from a in asm3[1].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 491Assert.Equal(1, (from a in asm3[1].BoundReferences() where ReferenceEquals(a, asm3[2]) select a).Count()); 504Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 505Assert.Equal(1, (from a in asm3[2].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 508Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 509Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 510Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[1]) select a).Count()); 511Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[2]) select a).Count()); 538Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 539Assert.Equal(1, (from a in asm4[1].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 540Assert.Equal(1, (from a in asm4[1].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 555Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 556Assert.Equal(1, (from a in asm4[2].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 561Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 562Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 563Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[1]) select a).Count()); 564Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 585Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 586Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 587Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[1]) select a).Count()); 588Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 589Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[3]) select a).Count()); 627Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 628Assert.Equal(1, (from a in asm7[2].BoundReferences() where ReferenceEquals(a, asm7[0]) select a).Count()); 629Assert.Equal(1, (from a in asm7[2].BoundReferences() where ReferenceEquals(a, asm7[1]) select a).Count()); 649Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 650Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[0]) select a).Count()); 651Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[1]) select a).Count()); 652Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[2]) select a).Count()); 696var asm_MTTestLib1_V1 = varC_MTTestLib1_V1.SourceAssembly().BoundReferences(); 718var asm_MTTestLib2 = varC_MTTestLib2.SourceAssembly().BoundReferences(); 732var asm2 = c2.SourceAssembly().BoundReferences(); 739Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 740Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 741Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 752Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 753Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 772var asm_MTTestLib1_V2 = varC_MTTestLib1_V2.SourceAssembly().BoundReferences(); 810var asm_MTTestLib3 = varC_MTTestLib3.SourceAssembly().BoundReferences(); 826var asm3 = c3.SourceAssembly().BoundReferences(); 835Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 836Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 837Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 850Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 851Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 854Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 855Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 856Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 857Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 898var asm_MTTestLib1_V3 = varC_MTTestLib1_V3.SourceAssembly().BoundReferences(); 945var asm_MTTestLib4 = varC_MTTestLib4.SourceAssembly().BoundReferences(); 963var asm4 = c4.SourceAssembly().BoundReferences(); 976Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 977Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 978Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 993Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 994Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 999Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1000Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1001Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1002Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1023Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1024Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1025Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1026Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1027Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1061var asm5 = c5.SourceAssembly().BoundReferences(); 1070var asm6 = c6.SourceAssembly().BoundReferences(); 1079var asm7 = c7.SourceAssembly().BoundReferences(); 1089Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1090Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1091Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1112Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1113Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1114Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1115Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1147var asm8 = c8.SourceAssembly().BoundReferences(); 1161var asm9 = c9.SourceAssembly().BoundReferences(); 1175var asm10 = c10.SourceAssembly().BoundReferences(); 1187Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1188Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1189Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1200Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1201Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1214Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1215Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1216Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1229Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1230Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1233Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1234Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1235Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1236Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1267Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1268Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1269Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1284Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1285Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1290Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1291Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1292Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1293Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1314Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1315Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1316Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1317Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1318Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1362Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1363Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1364Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1385Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1386Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1387Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1388Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1428var asm_MTTestLib2 = varC_MTTestLib2.SourceAssembly().BoundReferences(); 1438var asm2Prime = c2.SourceAssembly().BoundReferences(); 1446Assert.Equal(4, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1447Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1448Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1463Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1464Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1478var asm_MTTestLib3Prime = varC_MTTestLib3.SourceAssembly().BoundReferences(); 1495var asm3Prime = c3.SourceAssembly().BoundReferences(); 1505Assert.Equal(4, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1506Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1507Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1525Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1526Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1529Assert.Equal(6, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1530Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1531Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1532Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1564var asm_MTTestLib4Prime = varC_MTTestLib4.SourceAssembly().BoundReferences(); 1583var asm4Prime = c4.SourceAssembly().BoundReferences(); 1597Assert.Equal(4, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1598Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1599Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1614Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1615Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1620Assert.Equal(6, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1621Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1622Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1623Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1644Assert.Equal(8, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1645Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1646Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1647Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1648Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1685var asm5 = c5.SourceAssembly().BoundReferences(); 1697var asm6 = c6.SourceAssembly().BoundReferences(); 1711var asm7 = c7.SourceAssembly().BoundReferences(); 1721Assert.Equal(4, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1722Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1723Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1748Assert.Equal(6, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1749Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1750Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1751Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1788var asm8 = c8.SourceAssembly().BoundReferences(); 1805var asm9 = c9.SourceAssembly().BoundReferences(); 1820var asm10Prime = c10.SourceAssembly().BoundReferences(); 1833Assert.Equal(4, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1834Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1835Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1846Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1847Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1860Assert.Equal(4, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1861Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1862Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1875Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1876Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1879Assert.Equal(6, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1880Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1881Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1882Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1913Assert.Equal(4, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1914Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1915Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1930Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1931Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1936Assert.Equal(6, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1937Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1938Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1939Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1960Assert.Equal(8, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1961Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1962Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1963Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1964Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 2008Assert.Equal(4, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 2009Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 2010Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 2033Assert.Equal(6, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 2034Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 2035Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 2036Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 2262var asm5 = c5.SourceAssembly().BoundReferences(); 2707var boundRefs = compilation.Assembly.BoundReferences();
Symbols\Metadata\PE\LoadInAttributeModifier.cs (8)
387var method = module.ContainingAssembly.BoundReferences() 540var method = module.ContainingAssembly.BoundReferences() 1400var indexer = module.ContainingAssembly.BoundReferences() 1656var indexer = module.ContainingAssembly.BoundReferences() 1868var indexer = module.ContainingAssembly.BoundReferences() 2111var indexer = module.ContainingAssembly.BoundReferences() 2367var indexer = module.ContainingAssembly.BoundReferences() 2579var indexer = module.ContainingAssembly.BoundReferences()
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
100var thisRefs = @this.BoundReferences(); 101var thatRefs = that.BoundReferences();