254 references to BoundReferences
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (252)
Symbols\CompilationCreationTests.cs (244)
135Assert.Equal(0, asm1[0].BoundReferences().Length); 137Assert.Equal(1, (from a in asm1[1].BoundReferences() where !a.IsMissing select a).Count()); 138Assert.Equal(1, (from a in asm1[1].BoundReferences() where object.ReferenceEquals(a, asm1[0]) select a).Count()); 155Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 156Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 157Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 168Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 169Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 186Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 187Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 188Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 201Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 202Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 205Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 206Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 207Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 208Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 245Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 246Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 247Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 262Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 263Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 268Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 269Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 270Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 271Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 292Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 293Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 294Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 295Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 296Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 360Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 361Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 362Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 382Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 383Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 384Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 385Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 455Assert.Equal(1, (from a in asm1[1].BoundReferences() where !a.IsMissing select a).Count()); 456Assert.Equal(1, (from a in asm1[1].BoundReferences() where ReferenceEquals(a, asm1[0]) select a).Count()); 466Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 467Assert.Equal(1, (from a in asm2[1].BoundReferences() where ReferenceEquals(a, asm2[0]) select a).Count()); 468Assert.Equal(1, (from a in asm2[1].BoundReferences() where ReferenceEquals(a, asm2[2]) select a).Count()); 479Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 480Assert.Equal(1, (from a in asm2[2].BoundReferences() where ReferenceEquals(a, asm2[0]) select a).Count()); 488Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 489Assert.Equal(1, (from a in asm3[1].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 490Assert.Equal(1, (from a in asm3[1].BoundReferences() where ReferenceEquals(a, asm3[2]) select a).Count()); 503Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 504Assert.Equal(1, (from a in asm3[2].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 507Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 508Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[0]) select a).Count()); 509Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[1]) select a).Count()); 510Assert.Equal(1, (from a in asm3[3].BoundReferences() where ReferenceEquals(a, asm3[2]) select a).Count()); 537Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 538Assert.Equal(1, (from a in asm4[1].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 539Assert.Equal(1, (from a in asm4[1].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 554Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 555Assert.Equal(1, (from a in asm4[2].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 560Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 561Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 562Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[1]) select a).Count()); 563Assert.Equal(1, (from a in asm4[3].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 584Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 585Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[0]) select a).Count()); 586Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[1]) select a).Count()); 587Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[2]) select a).Count()); 588Assert.Equal(1, (from a in asm4[4].BoundReferences() where ReferenceEquals(a, asm4[3]) select a).Count()); 626Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 627Assert.Equal(1, (from a in asm7[2].BoundReferences() where ReferenceEquals(a, asm7[0]) select a).Count()); 628Assert.Equal(1, (from a in asm7[2].BoundReferences() where ReferenceEquals(a, asm7[1]) select a).Count()); 648Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 649Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[0]) select a).Count()); 650Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[1]) select a).Count()); 651Assert.Equal(1, (from a in asm7[3].BoundReferences() where ReferenceEquals(a, asm7[2]) select a).Count()); 695var asm_MTTestLib1_V1 = varC_MTTestLib1_V1.SourceAssembly().BoundReferences(); 717var asm_MTTestLib2 = varC_MTTestLib2.SourceAssembly().BoundReferences(); 731var asm2 = c2.SourceAssembly().BoundReferences(); 738Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 739Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 740Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 751Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 752Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 771var asm_MTTestLib1_V2 = varC_MTTestLib1_V2.SourceAssembly().BoundReferences(); 809var asm_MTTestLib3 = varC_MTTestLib3.SourceAssembly().BoundReferences(); 825var asm3 = c3.SourceAssembly().BoundReferences(); 834Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 835Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 836Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 849Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 850Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 853Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 854Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 855Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 856Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 897var asm_MTTestLib1_V3 = varC_MTTestLib1_V3.SourceAssembly().BoundReferences(); 944var asm_MTTestLib4 = varC_MTTestLib4.SourceAssembly().BoundReferences(); 962var asm4 = c4.SourceAssembly().BoundReferences(); 975Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 976Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 977Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 992Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 993Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 998Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 999Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1000Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1001Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1022Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1023Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1024Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1025Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1026Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1060var asm5 = c5.SourceAssembly().BoundReferences(); 1069var asm6 = c6.SourceAssembly().BoundReferences(); 1078var asm7 = c7.SourceAssembly().BoundReferences(); 1088Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1089Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1090Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1111Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1112Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1113Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1114Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1146var asm8 = c8.SourceAssembly().BoundReferences(); 1160var asm9 = c9.SourceAssembly().BoundReferences(); 1174var asm10 = c10.SourceAssembly().BoundReferences(); 1186Assert.Equal(2, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1187Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1188Assert.Equal(1, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1199Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1200Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1213Assert.Equal(2, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1214Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1215Assert.Equal(1, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1228Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1229Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1232Assert.Equal(3, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1233Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1234Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1235Assert.Equal(1, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1266Assert.Equal(2, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1267Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1268Assert.Equal(1, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1283Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1284Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1289Assert.Equal(3, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1290Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1291Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1292Assert.Equal(1, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1313Assert.Equal(4, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1314Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1315Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1316Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1317Assert.Equal(1, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1361Assert.Equal(2, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1362Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1363Assert.Equal(1, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1384Assert.Equal(3, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1385Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1386Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1387Assert.Equal(1, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1427var asm_MTTestLib2 = varC_MTTestLib2.SourceAssembly().BoundReferences(); 1437var asm2Prime = c2.SourceAssembly().BoundReferences(); 1445Assert.Equal(4, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1446Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1447Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1462Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1463Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1477var asm_MTTestLib3Prime = varC_MTTestLib3.SourceAssembly().BoundReferences(); 1494var asm3Prime = c3.SourceAssembly().BoundReferences(); 1504Assert.Equal(4, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1505Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1506Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1524Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1525Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1528Assert.Equal(6, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1529Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1530Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1531Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1563var asm_MTTestLib4Prime = varC_MTTestLib4.SourceAssembly().BoundReferences(); 1582var asm4Prime = c4.SourceAssembly().BoundReferences(); 1596Assert.Equal(4, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1597Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1598Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1613Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1614Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1619Assert.Equal(6, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1620Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1621Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1622Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1643Assert.Equal(8, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1644Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1645Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1646Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1647Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 1684var asm5 = c5.SourceAssembly().BoundReferences(); 1696var asm6 = c6.SourceAssembly().BoundReferences(); 1710var asm7 = c7.SourceAssembly().BoundReferences(); 1720Assert.Equal(4, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 1721Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1722Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1747Assert.Equal(6, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 1748Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 1749Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 1750Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 1787var asm8 = c8.SourceAssembly().BoundReferences(); 1804var asm9 = c9.SourceAssembly().BoundReferences(); 1819var asm10Prime = c10.SourceAssembly().BoundReferences(); 1832Assert.Equal(4, (from a in asm2[1].BoundReferences() where !a.IsMissing select a).Count()); 1833Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1834Assert.Equal(2, (from a in asm2[1].BoundReferences() where object.ReferenceEquals(a, asm2[2]) select a).Count()); 1845Assert.Equal(1, (from a in asm2[2].BoundReferences() where !a.IsMissing select a).Count()); 1846Assert.Equal(1, (from a in asm2[2].BoundReferences() where object.ReferenceEquals(a, asm2[0]) select a).Count()); 1859Assert.Equal(4, (from a in asm3[1].BoundReferences() where !a.IsMissing select a).Count()); 1860Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1861Assert.Equal(2, (from a in asm3[1].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1874Assert.Equal(1, (from a in asm3[2].BoundReferences() where !a.IsMissing select a).Count()); 1875Assert.Equal(1, (from a in asm3[2].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1878Assert.Equal(6, (from a in asm3[3].BoundReferences() where !a.IsMissing select a).Count()); 1879Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[0]) select a).Count()); 1880Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[1]) select a).Count()); 1881Assert.Equal(2, (from a in asm3[3].BoundReferences() where object.ReferenceEquals(a, asm3[2]) select a).Count()); 1912Assert.Equal(4, (from a in asm4[1].BoundReferences() where !a.IsMissing select a).Count()); 1913Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1914Assert.Equal(2, (from a in asm4[1].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1929Assert.Equal(1, (from a in asm4[2].BoundReferences() where !a.IsMissing select a).Count()); 1930Assert.Equal(1, (from a in asm4[2].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1935Assert.Equal(6, (from a in asm4[3].BoundReferences() where !a.IsMissing select a).Count()); 1936Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1937Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1938Assert.Equal(2, (from a in asm4[3].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1959Assert.Equal(8, (from a in asm4[4].BoundReferences() where !a.IsMissing select a).Count()); 1960Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[0]) select a).Count()); 1961Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[1]) select a).Count()); 1962Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[2]) select a).Count()); 1963Assert.Equal(2, (from a in asm4[4].BoundReferences() where object.ReferenceEquals(a, asm4[3]) select a).Count()); 2007Assert.Equal(4, (from a in asm7[2].BoundReferences() where !a.IsMissing select a).Count()); 2008Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 2009Assert.Equal(2, (from a in asm7[2].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 2032Assert.Equal(6, (from a in asm7[3].BoundReferences() where !a.IsMissing select a).Count()); 2033Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[0]) select a).Count()); 2034Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[1]) select a).Count()); 2035Assert.Equal(2, (from a in asm7[3].BoundReferences() where object.ReferenceEquals(a, asm7[2]) select a).Count()); 2261var asm5 = c5.SourceAssembly().BoundReferences(); 2706var 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();