1830 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CSharp (4)
FlowAnalysis\NullableWalker.cs (1)
6793var implementationMethod = baseType.FindImplementationForInterfaceMember(constructedMethod);
Symbols\ConstraintsHelper.cs (2)
1416if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null) 1427if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null)
Symbols\PublicModel\TypeSymbol.cs (1)
118? UnderlyingTypeSymbol.FindImplementationForInterfaceMember(symbol.UnderlyingSymbol).GetPublicSymbol()
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenInterfaceImplementation.cs (1)
2746AssertEx.Equal(baseMethods, interfaceMethods.Select(interfaceMethod => derivedType.FindImplementationForInterfaceMember(interfaceMethod)));
CodeGen\CodeGenTupleTest.cs (6)
20565Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20567c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20578c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 20580c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 20812c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M")).ToTestDisplayString()); 20814c3.FindImplementationForInterfaceMember(comp.GetTypeByMetadataName("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M")).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\RecordTests.cs (2)
24233Assert.Equal("B.Equals(B)", b.FindImplementationForInterfaceMember(b.InterfacesNoUseSiteDiagnostics()[1].GetMember("Equals")).ToDisplayString()); 24235Assert.Equal("C.Equals(C?)", c.FindImplementationForInterfaceMember(c.InterfacesNoUseSiteDiagnostics()[1].GetMember("Equals")).ToDisplayString());
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (4)
5903AssertEx.Equal("C1.op_IncrementAssignment()", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 5990AssertEx.Equal("C1.operator ++()", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 17559AssertEx.Equal("C1.op_AdditionAssignment(int)", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString()); 17646AssertEx.Equal("C1.operator +=(int)", c1.FindImplementationForInterfaceMember(i1M1).ToDisplayString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (43)
Semantics\InheritanceBindingTests.cs (3)
6648Assert.Equal(classEvent, @class.FindImplementationForInterfaceMember(interfaceEvent)); 6650Assert.Equal(classEvent.AddMethod, @class.FindImplementationForInterfaceMember(interfaceEvent.AddMethod)); 6651Assert.Equal(classEvent.RemoveMethod, @class.FindImplementationForInterfaceMember(interfaceEvent.RemoveMethod));
Semantics\NullableReferenceTypesTests.cs (40)
12694var impl = (EventSymbol)type.FindImplementationForInterfaceMember(member); 12705var impl = (EventSymbol)type.FindImplementationForInterfaceMember(e3); 12787var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(member); 12793var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(e3); 13035var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13041var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13126var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13132var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13325var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13333var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13412var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13418Assert.Null(b.FindImplementationForInterfaceMember(member)); 13421Assert.Null(b.FindImplementationForInterfaceMember(member)); 16502var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16510var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16719var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16725var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 16804var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16810var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 17020Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17022c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17033c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 17035c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17099Assert.Equal("void C1.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17101c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17112c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 17114c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17435c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17438c3.FindImplementationForInterfaceMember(mImplementations[0])); 17441c3.FindImplementationForInterfaceMember(m.GlobalNamespace.GetTypeMember("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M"))); 17516c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17519c3.FindImplementationForInterfaceMember(mImplementations[0])); 17600c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[1]).GetMember("M"))); 17603c3.FindImplementationForInterfaceMember(mImplementations[0])); 17681c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17684c3.FindImplementationForInterfaceMember(mImplementations[0])); 17732var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17740var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17800var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17808var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1770)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (14)
436Assert.Equal(baseProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty)); 437Assert.Equal(baseSetter, derivedClass.FindImplementationForInterfaceMember(interfaceSetter)); 440Assert.Equal(derivedMethod, derivedClass.FindImplementationForInterfaceMember(interfaceGetter)); 486Assert.Equal(derivedGetter, derivedClass.FindImplementationForInterfaceMember(interfaceMethod)); 584Assert.Equal(derivedProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty)); 585Assert.Equal(derivedGetter, derivedClass.FindImplementationForInterfaceMember(interfaceGetter)); 588Assert.Null(derivedClass.FindImplementationForInterfaceMember(interfaceSetter)); 654Assert.Equal(derived2Property, derived3Class.FindImplementationForInterfaceMember(interfaceProperty)); 655Assert.Equal(derived2Setter, derived3Class.FindImplementationForInterfaceMember(interfaceSetter)); 658Assert.Equal(derived1Getter, derived3Class.FindImplementationForInterfaceMember(interfaceGetter)); 774Assert.Equal(classP, @class.FindImplementationForInterfaceMember(interfaceP)); 775Assert.Equal(classQ, @class.FindImplementationForInterfaceMember(interfaceQ)); 778Assert.Equal(classPGetter, @class.FindImplementationForInterfaceMember(interfacePGetter)); 779Assert.Equal(classQGetter, @class.FindImplementationForInterfaceMember(interfaceQGetter));
Symbols\DefaultInterfaceImplementationTests.cs (1014)
217Assert.Equal(expectedImplementation, test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 218Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 228Assert.Equal(expectedImplementation, test2.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 229Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 591Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 592Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 689Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 690Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 791Assert.Equal("void Test.I1.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 792Assert.Equal("void Test.I1.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 893Assert.Equal("void Test.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 894Assert.Equal("void Test.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 976Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1051Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1130Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1209Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1290Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1291Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1374Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1375Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1462Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1463Assert.Equal("System.Int32 Test2.I1.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1550Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1551Assert.Equal("System.Int32 Test2.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1595Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1629Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1685Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1751Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 1786Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1826Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1883Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1917Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1935Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2028Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 2114Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 2188Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2210Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2276Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2277Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2345Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[0].GetMember("M1")).ToTestDisplayString()); 2346Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2418Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2419Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2491Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2492Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2731Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 2735Assert.Same(p1.GetMethod, test1.FindImplementationForInterfaceMember(p1.GetMethod)); 2740Assert.Same(p1.SetMethod, test1.FindImplementationForInterfaceMember(p1.SetMethod)); 2750Assert.Same(p1, test2.FindImplementationForInterfaceMember(p1)); 2755Assert.Same(getP1, test2.FindImplementationForInterfaceMember(getP1)); 2761Assert.Same(setP1, test2.FindImplementationForInterfaceMember(setP1)); 3418Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3419Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3420Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3486Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3487Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3488Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3573Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3574Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3575Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3637Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3638Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3639Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3766Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 3767Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 3768Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 3769Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 3770Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 3771Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 3772Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 3773Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 3775Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 3776Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 3777Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 3778Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 3779Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 3780Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 3781Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 3782Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 3783Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 3784Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 4001Assert.Equal("System.Int32 Test.I1.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4002Assert.Equal("System.Int32 Test.I1.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4003Assert.Equal("System.Int32 Test.I1.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4004Assert.Equal("System.Int32 Test.I1.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4005Assert.Equal("System.Int32 Test.I1.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4006Assert.Equal("System.Int32 Test.I1.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4007Assert.Equal("System.Int32 Test.I1.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4008Assert.Equal("System.Int32 Test.I1.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4010Assert.Equal("System.Int32 Test.I1.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4011Assert.Equal("System.Int32 Test.I1.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4012Assert.Equal("System.Int32 Test.I1.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4013Assert.Equal("System.Int32 Test.I1.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4014Assert.Equal("void Test.I1.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4015Assert.Equal("void Test.I1.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4016Assert.Equal("System.Int32 Test.I1.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4017Assert.Equal("System.Int32 Test.I1.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4018Assert.Equal("void Test.I1.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4019Assert.Equal("void Test.I1.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4153Assert.Equal("System.Int32 Test.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4154Assert.Equal("System.Int32 Test.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4155Assert.Equal("System.Int32 Test.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4156Assert.Equal("System.Int32 Test.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4157Assert.Equal("System.Int32 Test.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4158Assert.Equal("System.Int32 Test.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4159Assert.Equal("System.Int32 Test.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4160Assert.Equal("System.Int32 Test.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4162Assert.Equal("System.Int32 Test.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4163Assert.Equal("System.Int32 Test.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4164Assert.Equal("System.Int32 Test.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4165Assert.Equal("System.Int32 Test.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4166Assert.Equal("void Test.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4167Assert.Equal("void Test.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4168Assert.Equal("System.Int32 Test.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4169Assert.Equal("System.Int32 Test.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4170Assert.Equal("void Test.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4171Assert.Equal("void Test.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4346Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 4347Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 4348Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 4349Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 4369Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4370Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4371Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4372Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4373Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 4503Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 4504Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 4505Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 4506Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 4508Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 4509Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 4510Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 4511Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 4512Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 4911Assert.Null(derived.FindImplementationForInterfaceMember(p1)); 4912Assert.Null(derived.FindImplementationForInterfaceMember(p3)); 4913Assert.Null(derived.FindImplementationForInterfaceMember(p5)); 4914Assert.Null(derived.FindImplementationForInterfaceMember(p7)); 4940Assert.Null(derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4941Assert.Null(derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4942Assert.Null(derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4943Assert.Null(derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4944Assert.Null(derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5272Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5273Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5274Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5325Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5326Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5327Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5429Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5430Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 5431Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5432Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 5433Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5434Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 5435Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5436Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 5438Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5439Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 5440Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5441Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 5442Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5443Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 5444Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5445Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 5446Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5447Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 5614Assert.Equal("System.Int32 Test.I1." + name + "[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5615Assert.Equal("System.Int32 Test.I1." + name + "[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5616Assert.Equal("System.Int32 Test.I1." + name + "[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5617Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5618Assert.Equal("System.Int32 Test.I1." + name + "[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5619Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5620Assert.Equal("System.Int32 Test.I1." + name + "[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5621Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5625Assert.Equal("System.Int32 Test.I1.get_Item(System.SByte i)", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5626Assert.Equal("System.Int32 Test.I1.get_Item(System.Byte i)", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5627Assert.Equal("System.Int32 Test.I1.get_Item(System.Int16 i)", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5628Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt16 i)", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5629Assert.Equal("void Test.I1.set_Item(System.Int32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5630Assert.Equal("void Test.I1.set_Item(System.UInt32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5631Assert.Equal("System.Int32 Test.I1.get_Item(System.Int64 i)", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5632Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt64 i)", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5633Assert.Equal("void Test.I1.set_Item(System.Int64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5634Assert.Equal("void Test.I1.set_Item(System.UInt64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5638Assert.Equal("System.Int32 Test.I1.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5639Assert.Equal("System.Int32 Test.I1.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5640Assert.Equal("System.Int32 Test.I1.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5641Assert.Equal("System.Int32 Test.I1.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5642Assert.Equal("void Test.I1.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5643Assert.Equal("void Test.I1.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5644Assert.Equal("System.Int32 Test.I1.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5645Assert.Equal("System.Int32 Test.I1.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5646Assert.Equal("void Test.I1.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5647Assert.Equal("void Test.I1.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5757Assert.Equal("System.Int32 Test.this[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5758Assert.Equal("System.Int32 Test.this[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5759Assert.Equal("System.Int32 Test.this[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5760Assert.Equal("System.Int32 Test.this[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5761Assert.Equal("System.Int32 Test.this[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5762Assert.Equal("System.Int32 Test.this[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5763Assert.Equal("System.Int32 Test.this[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5764Assert.Equal("System.Int32 Test.this[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5766Assert.Equal("System.Int32 Test.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5767Assert.Equal("System.Int32 Test.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5768Assert.Equal("System.Int32 Test.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5769Assert.Equal("System.Int32 Test.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5770Assert.Equal("void Test.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5771Assert.Equal("void Test.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5772Assert.Equal("System.Int32 Test.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5773Assert.Equal("System.Int32 Test.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5774Assert.Equal("void Test.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5775Assert.Equal("void Test.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5903Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5904Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5905Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5906Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5926Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5927Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5928Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5929Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5930Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 6045Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 6046Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 6047Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 6048Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 6050Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 6051Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 6052Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 6053Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 6054Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 6452Assert.Same(e1, test1.FindImplementationForInterfaceMember(e1)); 6456Assert.Same(addE1, test1.FindImplementationForInterfaceMember(addE1)); 6461Assert.Same(rmvE1, test1.FindImplementationForInterfaceMember(rmvE1)); 6471Assert.Same(e1, test2.FindImplementationForInterfaceMember(e1)); 6476Assert.Same(addP1, test2.FindImplementationForInterfaceMember(addP1)); 6482Assert.Same(rmvP1, test2.FindImplementationForInterfaceMember(rmvP1)); 6978Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 6979Assert.Same(e8, derived.FindImplementationForInterfaceMember(e8)); 6981Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 6982Assert.Same(e8.AddMethod, derived.FindImplementationForInterfaceMember(e8.AddMethod)); 6983Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 6984Assert.Same(e8.RemoveMethod, derived.FindImplementationForInterfaceMember(e8.RemoveMethod)); 7154Assert.Equal("event System.Action Test.I1.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7155Assert.Equal("event System.Action Test.I1.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7157Assert.Equal("void Test.I1.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7158Assert.Equal("void Test.I1.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7159Assert.Equal("void Test.I1.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7160Assert.Equal("void Test.I1.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7261Assert.Equal("event System.Action Test.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7262Assert.Equal("event System.Action Test.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7264Assert.Equal("void Test.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7265Assert.Equal("void Test.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7266Assert.Equal("void Test.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7267Assert.Equal("void Test.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7384Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 7395Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7396Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7506Assert.Null(test2.FindImplementationForInterfaceMember(e7)); 7508Assert.Null(test2.FindImplementationForInterfaceMember(e7.AddMethod)); 7509Assert.Null(test2.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7781Assert.Null(derived.FindImplementationForInterfaceMember(e7)); 7795Assert.Null(derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7796Assert.Null(derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 8797Assert.Same(test1.GetMember(methodName), test1.FindImplementationForInterfaceMember(m1)); 8899Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8984Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8997Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9010Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9066Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9124Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9137Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9150Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9327Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 9359Assert.Same(implementation, test1.FindImplementationForInterfaceMember(m1)); 10103Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10153Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10234Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10235Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 10248Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10249Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10262Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10263Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10276Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10277Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10342Assert.Same(test1.GetMember("I1." + methodName), test1.FindImplementationForInterfaceMember(m2)); 10343Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10396Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 10397Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10410Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10411Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10424Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10425Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10438Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10439Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10452Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10453Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10622Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10623Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10636Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10637Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10640Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10643Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10646Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10742Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10743Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10756Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10757Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10770Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10771Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10784Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10785Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10798Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10799Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10850Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10899Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 11814Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 12656Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12744Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12832Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 14018Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 14034Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 14294Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14326Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14405Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14416Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14428Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14439Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 14451Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14462Assert.Null(test1.FindImplementationForInterfaceMember(p3get)); 14643Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14675Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14747Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14758Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14770Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14781Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 14792Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14807Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14820Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 14831Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 15007Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15008Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15009Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 15041Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 15042Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 15043Assert.Null(test2.FindImplementationForInterfaceMember(p1.SetMethod)); 15185Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15187Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15188Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 16014Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16015Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 16016Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 16195Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16227Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16325Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16326Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 16337Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 16338Assert.Null(test2.FindImplementationForInterfaceMember(p1get)); 16351Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 16352Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16363Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 16364Assert.Null(test2.FindImplementationForInterfaceMember(p2get)); 16377Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16378Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16389Assert.Null(test1.FindImplementationForInterfaceMember(p3set)); 16390Assert.Null(test2.FindImplementationForInterfaceMember(p3set)); 16601Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 16602Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16635Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 16636Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16791Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 16792Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 16803Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 16804Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 16817Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 16818Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 16829Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 16830Assert.Same(test2P2.SetMethod, test2.FindImplementationForInterfaceMember(p2set)); 16845Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16846Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16861Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16862Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16876Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 16877Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 16888Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 16889Assert.Null(test2.FindImplementationForInterfaceMember(p4get)); 16901Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 16902Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 16913Assert.Null(test1.FindImplementationForInterfaceMember(p5set)); 16914Assert.Null(test2.FindImplementationForInterfaceMember(p5set)); 17034Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17035Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17046Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 17047Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 17060Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 17061Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17072Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 17073Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17085Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17086Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17101Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17102Assert.Same(test2Implementation, test2.FindImplementationForInterfaceMember(accessor)); 17114Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17115Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 17130Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17131Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 17144Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17145Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17156Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17157Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17283Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17284Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17299Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17300Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17314Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 17315Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17326Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 17327Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17339Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17340Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17355Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17356Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17369Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17370Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17385Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17386Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17399Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17400Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17411Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17412Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17481Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17482Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 17483Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 17762Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17792Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor)); 18355Assert.Same(implementingProperty, test1.FindImplementationForInterfaceMember(p1)); 18392Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1)); 19862Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 19863Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 19864Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 20530Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 20547Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 23393Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 23394Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 23395Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 27646Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 27662Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 27820Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 27836Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 27988Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28003Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28015Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28030Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28042Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28057Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28149Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28165Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28245Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28260Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28272Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28287Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28299Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28314Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28326Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 28341Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28449Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28450Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1add)); 28451Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1remove)); 28543Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 28544Assert.Null(test2.FindImplementationForInterfaceMember(p1.AddMethod)); 28545Assert.Null(test2.FindImplementationForInterfaceMember(p1.RemoveMethod)); 28689Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28691Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1Add)); 28692Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1Remove)); 29512Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29513Assert.Null(test1.FindImplementationForInterfaceMember(p1.AddMethod)); 29514Assert.Null(test1.FindImplementationForInterfaceMember(p1.RemoveMethod)); 29598Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29614Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29713Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29714Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 29729Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29730Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29743Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 29744Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 29759Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29760Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29773Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 29774Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 29789Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29790Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30014Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 30015Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 30048Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 30049Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30126Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30127Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30142Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30143Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30156Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30157Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30172Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30173Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30186Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30187Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30202Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30203Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30215Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30216Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30231Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30232Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30244Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30245Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30260Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30261Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30456Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30457Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30472Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30473Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30486Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30487Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30502Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30503Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30516Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30517Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30532Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30533Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30545Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30546Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30561Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30562Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30677Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30678Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30693Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30694Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30707Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 30708Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30723Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30724Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30737Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30738Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30753Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30754Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30767Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30768Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30783Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30784Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30796Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30797Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30812Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30813Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30886Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30887Assert.Same(p1add, test1.FindImplementationForInterfaceMember(p1add)); 30888Assert.Same(p1remove, test1.FindImplementationForInterfaceMember(p1remove)); 31239Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 31255Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 33034Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33035Assert.Null(test1.FindImplementationForInterfaceMember(i1i4m1)); 33036Assert.Equal(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33037Assert.Equal(i4M1IsAbstract ? null : i1i4m1, test1.FindImplementationForInterfaceMember(i4m1)); 33039Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33040Assert.Null(i1.FindImplementationForInterfaceMember(i1i4m1)); 33041Assert.Equal(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33042Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i1.FindImplementationForInterfaceMember(i4m1)); 33044Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33045Assert.Null(i4.FindImplementationForInterfaceMember(i4m1)); 33056Assert.Equal(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 33057Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i3.FindImplementationForInterfaceMember(i4m1)); 33786Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33787Assert.Same(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33789Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33790Assert.Same(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33792Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33794Assert.Same(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 34002Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 34003Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", test1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34005Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 34006Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34008Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 34010Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i3.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34303Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34304Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i1m1)); 34305Assert.Same(i5m1, i5.FindImplementationForInterfaceMember(i1m1)); 34306Assert.Same(i5m1, i6.FindImplementationForInterfaceMember(i1m1)); 34483Assert.Null(i7.FindImplementationForInterfaceMember(i1m1)); 34484Assert.Null(i8.FindImplementationForInterfaceMember(i1m1)); 34523Assert.Same(i2m1, test5.FindImplementationForInterfaceMember(i1m1)); 34524Assert.Same(i5m1, test6.FindImplementationForInterfaceMember(i1m1)); 34525Assert.Same(i5m1, test7.FindImplementationForInterfaceMember(i1m1)); 34578Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34579Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34580Assert.Null(test3.FindImplementationForInterfaceMember(i1m1)); 34581Assert.Null(test4.FindImplementationForInterfaceMember(i1m1)); 34582Assert.Null(test5.FindImplementationForInterfaceMember(i1m1)); 34604Assert.Same(test8.GetMember<MethodSymbol>("I1.M1"), test8.FindImplementationForInterfaceMember(i1m1)); 34605Assert.Same(test9.GetMember<MethodSymbol>("I1.M1"), test9.FindImplementationForInterfaceMember(i1m1)); 34606Assert.Same(test10.GetMember<MethodSymbol>("M1"), test10.FindImplementationForInterfaceMember(i1m1)); 34607Assert.Same(test11.GetMember<MethodSymbol>("M1"), test11.FindImplementationForInterfaceMember(i1m1)); 34608Assert.Same(test12.GetMember<MethodSymbol>("M1"), test12.FindImplementationForInterfaceMember(i1m1)); 34821Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34822Assert.Same(i1m2, i1.FindImplementationForInterfaceMember(i1m2)); 34824Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 34825Assert.Null(i2.FindImplementationForInterfaceMember(i1m2)); 34826Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m1)); 34827Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m2)); 34828Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i2i1m1)); 34829Assert.Same(i2m2, i2.FindImplementationForInterfaceMember(i2i1m2)); 34831Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 34832Assert.Null(i3.FindImplementationForInterfaceMember(i1m2)); 34833Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m1)); 34834Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m2)); 34835Assert.Same(i3i1m1, i3.FindImplementationForInterfaceMember(i3i1m1)); 34836Assert.Same(i3i1m2, i3.FindImplementationForInterfaceMember(i3i1m2)); 34860Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m1)); 34861Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m2)); 34862Assert.Equal(test1i1m1, test1i1.FindImplementationForInterfaceMember(test1i1m1)); 34863Assert.Equal(test1i1m2, test1i1.FindImplementationForInterfaceMember(test1i1m2)); 34864Assert.Equal(test2i1m1, test2i1.FindImplementationForInterfaceMember(test2i1m1)); 34865Assert.Equal(test2i1m2, test2i1.FindImplementationForInterfaceMember(test2i1m2)); 34866Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m1)); 34867Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m2)); 34868Assert.Equal(test2i2m1, test2i2.FindImplementationForInterfaceMember(test2i1m1)); 34869Assert.Equal(test2i2m2, test2i2.FindImplementationForInterfaceMember(test2i1m2)); 34874Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34875Assert.Null(test1.FindImplementationForInterfaceMember(i1m2)); 34876Assert.Equal(test1i1m1, test1.FindImplementationForInterfaceMember(test1i1m1)); 34877Assert.Equal(test1i1m2, test1.FindImplementationForInterfaceMember(test1i1m2)); 34878Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34879Assert.Null(test2.FindImplementationForInterfaceMember(i1m2)); 34880Assert.Equal(test2i2m1, test2.FindImplementationForInterfaceMember(test2i1m1)); 34881Assert.Equal(test2i2m2, test2.FindImplementationForInterfaceMember(test2i1m2)); 34994Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 34995Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35018Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35019Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35088Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35089Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35090Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35116Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35117Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35118Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35186Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35187Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35188Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35211Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35212Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35213Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35282Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35283Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35306Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35307Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35387Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 35388Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35478Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35479Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35587Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35588Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35700Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35701Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35813Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35814Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35919Assert.Equal("void I2.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 36236Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36237Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[6].GetMember("M1")).ToTestDisplayString()); 37083Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37091Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 37102Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37110Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 39531Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 39532Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 40116Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40124Assert.Same(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 40135Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40143Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 51111Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51112Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51264Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51265Assert.Equal("void Test1.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51402Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 51403Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51543Assert.Equal("void I3.I1.M1()", i3.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51544Assert.Equal("void I3.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51684Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51826Assert.Null(i4.FindImplementationForInterfaceMember(i1m1)); 51827Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51936Assert.Equal("void I4.I1.M1()", i4.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51937Assert.Equal("void I4.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51991Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51992Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52056Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52057Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52114Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52115Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52179Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52180Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52234Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52235Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52288Assert.Same(c2m1, c2.FindImplementationForInterfaceMember(i1m1)); 52534Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52535Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52540Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52541Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52551Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52552Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52733Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52734Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 52738Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52739Assert.Same(test12p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52744Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52745Assert.Same(test12p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52888Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 52889Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52893Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52894Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52899Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52900Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53060Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 53061Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 53065Assert.Same(i3p1.GetMethod, i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53066Assert.Same(i3p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53071Assert.Same(i3p1.SetMethod, i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53072Assert.Same(i3p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53225Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53228Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53232Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53389Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 53390Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53393Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53394Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53398Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53399Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53529Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 53530Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 53534Assert.Same(i4p1.GetMethod, i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53535Assert.Same(i4p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53540Assert.Same(i4p1.SetMethod, i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53541Assert.Same(i4p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53616Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53617Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53626Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53627Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53641Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53642Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53789Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53790Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53795Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53796Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53806Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53807Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53910Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 53914Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53924Assert.Same(c2p1Set, c2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54224Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 54225Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54230Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54231Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54241Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54242Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54393Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54394Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54395Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54466Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54467Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54468Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54566Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54567Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54568Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54637Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54638Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54639Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54705Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54706Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54707Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54799Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54800Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54801Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54893Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54894Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54895Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54981Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54982Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54983Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 57512Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57513Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57516Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57517Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57520Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57521Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57691Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57692Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 57694Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57695Assert.Same(test12p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57697Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57698Assert.Same(test12p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57839Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 57840Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57842Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57843Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57845Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57846Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57999Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 58000Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 58002Assert.Same(i3p1.AddMethod, i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58003Assert.Same(i3p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58005Assert.Same(i3p1.RemoveMethod, i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58006Assert.Same(i3p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58150Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58151Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58152Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58301Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 58302Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58304Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58305Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58307Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58308Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58431Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 58432Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 58434Assert.Same(i4p1.AddMethod, i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58435Assert.Same(i4p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58437Assert.Same(i4p1.RemoveMethod, i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58438Assert.Same(i4p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58504Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 58505Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58514Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58515Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58529Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58530Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58696Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 58706Assert.Same(c2p1Add, c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58710Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58721Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58725Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59276Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 59277Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 59280Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59281Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59284Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59285Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 62388Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62481Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62525Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62526Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62540Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62541Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62735Assert.Same(i1Normal, i1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62736Assert.Same(i1Normal.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62737Assert.Same(i1Normal.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62738Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62739Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62740Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62742Assert.Same(i1Normal, c1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62743Assert.Same(i1Normal.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62744Assert.Same(i1Normal.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62745Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62746Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62747Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62797Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(i1WinRT)); 62798Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(i1WinRT.AddMethod)); 62799Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod)); 62857Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62858Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62859Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62861Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62862Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62863Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63159Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 63160Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63161Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 63162Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 63164Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63165Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63166Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63167Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63168Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63169Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63170Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 63171Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63172Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 63173Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 63175Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63176Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63177Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63178Assert.Same(c1i1P3set, test1.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63179Assert.Same(c1i1E1add, test1.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63180Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63181Assert.Null(test1.FindImplementationForInterfaceMember(i1P1)); 63182Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 63183Assert.Null(test1.FindImplementationForInterfaceMember(i1P3)); 63184Assert.Null(test1.FindImplementationForInterfaceMember(i1E1)); 63186Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63187Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63188Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63189Assert.Same(c1i1P3set, test4.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63190Assert.Same(c1i1E1add, test4.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63191Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63192Assert.Null(test4.FindImplementationForInterfaceMember(i1P1)); 63193Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63194Assert.Null(test4.FindImplementationForInterfaceMember(i1P3)); 63195Assert.Null(test4.FindImplementationForInterfaceMember(i1E1)); 63197Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63198Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63199Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63200Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63201Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63202Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63203Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 63204Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63205Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 63206Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 63356Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63358Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63359Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63360Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63362Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63363Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63364Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63366Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63367Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63368Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63370Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63371Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63372Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63522Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63524Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63525Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63526Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63528Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63529Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63530Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63532Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63533Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63534Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63536Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63537Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63538Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63696Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63698Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63699Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63700Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63702Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63703Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63704Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 63706Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63707Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63708Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63710Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63711Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63712Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63868Assert.Null(c3.FindImplementationForInterfaceMember(i1.GetMember<PropertySymbol>("P2"))); 64089Assert.Null(i3.FindImplementationForInterfaceMember(i1P1)); 64090Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64091Assert.Null(i3.FindImplementationForInterfaceMember(i1P3)); 64092Assert.Null(i3.FindImplementationForInterfaceMember(i1E1)); 64094Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 64095Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64096Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 64097Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 64099Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64100Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64101Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64102Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64103Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64104Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64105Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 64106Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64107Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 64108Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 64110Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64111Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64112Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64113Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64114Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64115Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64116Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 64117Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64118Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 64119Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 64226Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64227Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64229Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64230Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64231Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64233Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64234Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64235Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64342Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64343Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64345Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64346Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64347Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64349Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64350Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64351Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64462Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64463Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64465Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64466Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64467Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64469Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64470Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64471Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64543Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64544Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64623Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64624Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64698Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64699Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64777Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64778Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 68895Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68896Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 68980Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68981Assert.Null(test1.FindImplementationForInterfaceMember(i1m1));
Symbols\GenericConstraintTests.cs (1)
3358var impl = c1.FindImplementationForInterfaceMember(im);
Symbols\IndexedPropertyTests.cs (4)
2520Assert.Null(sourceType1.FindImplementationForInterfaceMember(interfaceProperty)); 2521Assert.Null(sourceType1.FindImplementationForInterfaceMember(interfaceProperty.GetMethod)); 2524Assert.Null(sourceType2.FindImplementationForInterfaceMember(interfaceProperty)); 2525Assert.NotNull(sourceType2.FindImplementationForInterfaceMember(interfaceProperty.GetMethod));
Symbols\IndexerTests.cs (8)
337Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface1Indexer)); 338Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface2Indexer)); 419Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface1Indexer)); 420Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface2Indexer)); 486Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexers[0])); 487Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexers[1])); 552var indexer0Impl = @class.FindImplementationForInterfaceMember(interfaceIndexers[0]); 553var indexer1Impl = @class.FindImplementationForInterfaceMember(interfaceIndexers[1]);
Symbols\InterfaceImplementationTests.cs (98)
54Assert.Null(@base.FindImplementationForInterfaceMember(baseMethod)); //containing type is not an interface 57Assert.Null(@base.FindImplementationForInterfaceMember(baseProperty)); //containing type is not an interface 60Assert.Null(@base.FindImplementationForInterfaceMember(baseIndexer)); //containing type is not an interface 63Assert.Null(@base.FindImplementationForInterfaceMember(baseEvent)); //containing type is not an interface 66Assert.Null(@base.FindImplementationForInterfaceMember(baseField)); //not a method/property/event 69Assert.Null(@base.FindImplementationForInterfaceMember(baseNestedInterface)); //not a method/property/event 72Assert.Null(@base.FindImplementationForInterfaceMember(baseNestedClass)); //not a method/property/event 75Assert.Null(@base.FindImplementationForInterfaceMember(baseNestedStruct)); //not a method/property/event 78Assert.Null(@base.FindImplementationForInterfaceMember(baseNestedEnum)); //not a method/property/event 81Assert.Null(@base.FindImplementationForInterfaceMember(baseNestedDelegate)); //not a method/property/event 83Assert.Throws<ArgumentNullException>(() => @base.FindImplementationForInterfaceMember(null)); //not a method/property/event 88Assert.Null(@interface.FindImplementationForInterfaceMember(interfaceMethod)); //type is not a class or struct 90Assert.Null(@interface.FindImplementationForInterfaceMember(@interface)); //symbol containing type is null 142var implementingMethodBase = @class.FindImplementationForInterfaceMember(baseInterfaceMethod); 145var implementingMethod = @class.FindImplementationForInterfaceMember(interfaceMethod); 193var implementingMethodBase = @class.FindImplementationForInterfaceMember(baseInterfaceIndexer); 196var implementingMethod = @class.FindImplementationForInterfaceMember(interfaceIndexer); 262var implementingMethod = @class.FindImplementationForInterfaceMember(interfaceMethod); 265var implementingMethodBase1 = @class.FindImplementationForInterfaceMember(baseInterface1Method); 268var implementingMethodBase2 = @class.FindImplementationForInterfaceMember(baseInterface2Method); 330var implementingIndexer = @class.FindImplementationForInterfaceMember(interfaceIndexer); 333var implementingIndexerBase1 = @class.FindImplementationForInterfaceMember(baseInterface1Indexer); 336var implementingIndexerBase2 = @class.FindImplementationForInterfaceMember(baseInterface2Indexer); 378Assert.Null(class1.FindImplementationForInterfaceMember(interfaceMethod)); 381Assert.Null(class2.FindImplementationForInterfaceMember(interfaceMethod)); 453var class1ImplementingMethodBase = class1.FindImplementationForInterfaceMember(baseInterfaceMethod); 456var class1ImplementingMethod = class1.FindImplementationForInterfaceMember(interfaceMethod); 461var class2ImplementingMethodBase = class2.FindImplementationForInterfaceMember(baseInterfaceMethod); 464var class2ImplementingMethod = class2.FindImplementationForInterfaceMember(interfaceMethod); 526var class1ImplementingMethod = class1.FindImplementationForInterfaceMember(interfaceMethod); 529var class1ImplementingMethodBase1 = class1.FindImplementationForInterfaceMember(baseInterface1Method); 532var class1ImplementingMethodBase2 = class1.FindImplementationForInterfaceMember(baseInterface2Method); 537var class2ImplementingMethod = class2.FindImplementationForInterfaceMember(interfaceMethod); 540var class2ImplementingMethodBase1 = class2.FindImplementationForInterfaceMember(baseInterface1Method); 543var class2ImplementingMethodBase2 = class2.FindImplementationForInterfaceMember(baseInterface2Method); 592Assert.Null(baseClass.FindImplementationForInterfaceMember(interfaceMethod)); 593Assert.Same(baseClassMethod, class1.FindImplementationForInterfaceMember(interfaceMethod)); 594Assert.Null(class2.FindImplementationForInterfaceMember(interfaceMethod)); 641Assert.Null(baseClass.FindImplementationForInterfaceMember(interfaceIndexer)); 642Assert.Same(baseClassIndexer, class1.FindImplementationForInterfaceMember(interfaceIndexer)); 643Assert.Null(class2.FindImplementationForInterfaceMember(interfaceIndexer)); 683var baseClassImplementingMethod = baseClass.FindImplementationForInterfaceMember(interfaceMethod); 690var class1ImplementingMethod = class1.FindImplementationForInterfaceMember(interfaceMethod); 698var class2ImplementingMethod = class2.FindImplementationForInterfaceMember(interfaceMethod); 751var baseClassImplementingMethodVirtual = baseClass.FindImplementationForInterfaceMember(interfaceMethodVirtual); 754var baseClassImplementingMethodNonVirtual = baseClass.FindImplementationForInterfaceMember(interfaceMethodNonVirtual); 767var class1ImplementingMethodVirtual = class1.FindImplementationForInterfaceMember(interfaceMethodVirtual); 771var class1ImplementingMethodNonVirtual = class1.FindImplementationForInterfaceMember(interfaceMethodNonVirtual); 785var class2ImplementingMethodVirtual = class2.FindImplementationForInterfaceMember(interfaceMethodVirtual); 789var class2ImplementingMethodNonVirtual = class2.FindImplementationForInterfaceMember(interfaceMethodNonVirtual); 849Assert.Null(nonDeclaring1.FindImplementationForInterfaceMember(interfaceMethod)); 850Assert.Equal(nonDeclaring1Method, declaring1.FindImplementationForInterfaceMember(interfaceMethod)); 851Assert.Equal(nonDeclaring1Method, nonDeclaring2.FindImplementationForInterfaceMember(interfaceMethod)); 852Assert.Equal(nonDeclaring2Method, declaring2.FindImplementationForInterfaceMember(interfaceMethod)); 876Assert.Null(baseClass.FindImplementationForInterfaceMember(interfaceMethod)); 883Assert.Same(derivedClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod)); 933Assert.Same(baseClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod)); 934Assert.Same(baseClassProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty)); 935Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter)); 936Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter)); 1002Assert.Same(baseClassMethod, derivedClass.FindImplementationForInterfaceMember(interfaceMethod)); 1003Assert.Same(baseClassProperty, derivedClass.FindImplementationForInterfaceMember(interfaceProperty)); 1004Assert.Same(baseClassPropertyGetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertyGetter)); 1005Assert.Same(baseClassPropertySetter, derivedClass.FindImplementationForInterfaceMember(interfacePropertySetter)); 1073var classMethod1Impl = @class.FindImplementationForInterfaceMember(interfaceMethod1); 1077var classMethod2Impl = @class.FindImplementationForInterfaceMember(interfaceMethod2); 1219Assert.Null(global.GetMember<NamedTypeSymbol>("Derived").FindImplementationForInterfaceMember( 1290Assert.Null(global.GetMember<NamedTypeSymbol>("Derived").FindImplementationForInterfaceMember( 1346Assert.Null(global.GetMember<NamedTypeSymbol>("Derived").FindImplementationForInterfaceMember( 1421Assert.Null(global.GetMember<NamedTypeSymbol>("Derived").FindImplementationForInterfaceMember( 1543global.GetMember<NamedTypeSymbol>("Derived").FindImplementationForInterfaceMember( 1597Assert.Equal(gooMethod, typeSymbol.FindImplementationForInterfaceMember(firstInterfaceMethod)); 1598Assert.Equal(gooMethod, typeSymbol.FindImplementationForInterfaceMember(secondInterfaceMethod)); 1651Assert.Equal(classAMethod, classA.FindImplementationForInterfaceMember(interfaceMethod)); 1653Assert.Equal(classBMethod, classC.FindImplementationForInterfaceMember(interfaceMethod)); 1711Assert.Equal(classAMethod, classA.FindImplementationForInterfaceMember(interfaceMethod)); 1713Assert.Equal(classBMethod, classC.FindImplementationForInterfaceMember(interfaceMethod)); 1774Assert.Null(classC.FindImplementationForInterfaceMember(interfaceProperty)); 1775Assert.Equal("System.Int32 C.I.get_Item(System.Int32 x)", classC.FindImplementationForInterfaceMember(interfaceGetter).ToTestDisplayString()); 1776Assert.Equal("void C.I.set_Item(System.Int32 x, System.Int32 value)", classC.FindImplementationForInterfaceMember(interfaceSetter).ToTestDisplayString()); 1778Assert.Null(classD.FindImplementationForInterfaceMember(interfaceProperty)); 1779Assert.Equal("System.Int32 D.get_Item(System.Int32 x)", classD.FindImplementationForInterfaceMember(interfaceGetter).ToTestDisplayString()); 1780Assert.Equal("void D.set_Item(System.Int32 x, System.Int32 value)", classD.FindImplementationForInterfaceMember(interfaceSetter).ToTestDisplayString()); 1973Assert.Equal(baseTypeMethod, derivedType.FindImplementationForInterfaceMember(interface1Method)); 1974Assert.Equal(baseTypeMethod, derivedType.FindImplementationForInterfaceMember(interface2Method)); 2034Assert.Equal(baseMethod, derivedType.FindImplementationForInterfaceMember(interfaceMethod)); 2223Assert.Equal(baseAdder, derivedType.FindImplementationForInterfaceMember(interfaceAdder)); 2224Assert.Equal(baseAdder, baseType.FindImplementationForInterfaceMember(interfaceAdder)); 2226Assert.Null(derivedType.FindImplementationForInterfaceMember(interfaceEvent)); 2227Assert.Null(baseType.FindImplementationForInterfaceMember(interfaceEvent)); 2298Assert.Equal(baseProperty, baseType.FindImplementationForInterfaceMember(interfaceProperty)); 2299Assert.Equal(baseGetter, baseType.FindImplementationForInterfaceMember(interfaceGetter)); 2301Assert.Null(derivedType.FindImplementationForInterfaceMember(interfaceProperty)); // Used to return baseProperty, which seems wrong. 2302Assert.Equal(derivedGetter, derivedType.FindImplementationForInterfaceMember(interfaceGetter)); 2497var implementation = derivedType.FindImplementationForInterfaceMember(baseType.Interfaces().Single().GetMember("GetHashCode")); 2710var implementingMember = derivedType.FindImplementationForInterfaceMember(interfaceMember); 2735Assert.Null(i2.FindImplementationForInterfaceMember(i1M)); 2759Assert.Null(i2.FindImplementationForInterfaceMember(i1M));
Symbols\Metadata\PE\LoadingIndexers.cs (1)
1179Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexer));
Symbols\Metadata\PE\LoadingProperties.cs (5)
280Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty1)); 281Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty4)); 282Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty5)); 284Assert.Null(@class.FindImplementationForInterfaceMember(interfaceProperty2)); 285Assert.Null(@class.FindImplementationForInterfaceMember(interfaceProperty3));
Symbols\OverriddenOrHiddenMembersTests.cs (6)
1918global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember( 1946global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember( 1974global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember( 2003Assert.Null(global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember( 2032Assert.Null(global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember( 2099Assert.Null(global.GetMember<NamedTypeSymbol>("B2").FindImplementationForInterfaceMember(
Symbols\Source\CustomModifierCopyTests.cs (4)
1992var implementationProperty = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceProperty); 1993var implementationIndexer = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceIndexer); 2094var implementationProperty = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceProperty); 2095var implementationIndexer = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceIndexer);
Symbols\Source\ExpressionBodiedMethodTests.cs (3)
290var implements = method.ContainingType.FindImplementationForInterfaceMember(iM); 294implements = c.FindImplementationForInterfaceMember(iN); 299implements = c.FindImplementationForInterfaceMember(jN);
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
394var implements = prop.ContainingType.FindImplementationForInterfaceMember(iP);
Symbols\StaticAbstractMembersInInterfacesTests.cs (610)
160Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 172Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 184Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 196Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 208Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 220Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 232Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 244Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 256Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 268Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 871Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 981Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1011Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1053Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1068Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1146Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1183Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1220Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1267Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1282Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1318Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1333Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1373Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1388Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1431Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1446Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1486Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1501Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1544Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1559Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1724Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1734Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 1744Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 1754Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 1764Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 1774Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 1784Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 1794Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 1804Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 1814Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 1827Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1839Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 1851Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 1863Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 1875Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 1887Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 1899Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 1911Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 1923Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 1935Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 2530Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 2540Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 2550Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 2560Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 2570Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 2580Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 2590Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 2600Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 2610Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 2620Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 2635Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 2647Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 2659Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 2671Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 2683Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 2695Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 2707Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 2719Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 2731Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 2743Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 3363Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 3375Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 3387Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 3399Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 3411Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 3423Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 3435Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 3447Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 3459Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 3471Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 4130Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4143Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4156Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4376Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4389Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4402Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4562Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4575Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4588Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4802Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4815Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4828Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 15769Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15770Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15771Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15772Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15775Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15777Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15778Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 15849Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15850Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15851Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15852Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15855Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15857Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15860Assert.Same(i8.GetMembers().OfType<MethodSymbol>().Single(), i8.FindImplementationForInterfaceMember(m01)); 16057var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16119var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16190var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16284var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16290Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 16293Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16296Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 16300Assert.Equal("void C2.M01()", c5.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16346Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 16347Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 16376Assert.Equal("void C1.I1.M01()", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16425Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 16426Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 16465var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16550var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16587var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16686var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16692Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16699Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 16779var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16785Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 16853var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16856var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 16935var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16938var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17017var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17020Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17088var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17091Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17162var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17166var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17249var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17253var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17347var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17352var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17449var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17454var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 18414Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18415Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18416Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18417Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18420Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18422Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18425Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18428Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18431Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18434Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18437Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18439Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18561Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18562Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18563Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18564Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18567Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18569Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18572Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18575Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18578Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18581Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18584Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18586Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18714Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18715Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18716Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18717Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18720Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18722Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18728Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18735Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18739Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 18867Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18868Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18869Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18870Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18873Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18875Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18881Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18888Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18892Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 19053Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 19054Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 19055Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 19056Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 19059Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 19061Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 19064Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19067Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19070Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19073Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19076Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19078Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 19245Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 19246Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 19247Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 19248Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 19251Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 19253Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 19259Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 19266Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 19270Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 19848var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19929var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20021var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20119var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20202var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20294var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20383var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20474var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20548var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20631var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20711var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20820var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20827Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20830Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20833Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20837var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 20955var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20962Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20965Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20968Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20972var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 21032Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 21033Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 21063Assert.Equal("I1 C1.I1." + opName + "(I1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 21112Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 21113Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 21143Assert.Equal("I1 C1.I1." + opName + "(I1 x, System.Int32 y)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 21204Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 21205Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 21269Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 21270Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 21338var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21454var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21491var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21565var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21602var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21700var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21736var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21842Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21903Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 21907Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 22017var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 22023Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 22030Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 22144var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 22150Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 22247var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22250var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 22356var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22360Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 22458var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22462var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 23155Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 23156Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 23157Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 23158Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 23159Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 23160Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 23166Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 23167Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 23168Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 23244Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 23245Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 23246Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 23247Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 23248Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 23257Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 23258Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 23259Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 23478var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23487Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23502Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23574var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23583Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23664var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23673Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23688Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23765var cM01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 23769Assert.Same(cM01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23770Assert.Same(cM01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23921var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 23925Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23926Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23932Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 23933Assert.Same(c1M01.GetMethod, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 23934Assert.Same(c1M01.SetMethod, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 23937Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 23938Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23939Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23942Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 23943Assert.Same(c1M01.GetMethod, c4.FindImplementationForInterfaceMember(m01.GetMethod)); 23944Assert.Same(c1M01.SetMethod, c4.FindImplementationForInterfaceMember(m01.SetMethod)); 23948var c2M01 = (PropertySymbol)c5.FindImplementationForInterfaceMember(m01); 23950Assert.Same(c2M01.GetMethod, c5.FindImplementationForInterfaceMember(m01.GetMethod)); 23951Assert.Same(c2M01.SetMethod, c5.FindImplementationForInterfaceMember(m01.SetMethod)); 24023Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 24024Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 24025Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24026Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24027Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24028Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24066Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 24067Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 24068Assert.Same(c1m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24069Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24070Assert.Same(c1m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24071Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24104Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 24105Assert.Same(c1m01.GetMethod, c.FindImplementationForInterfaceMember(m01.GetMethod)); 24106Assert.Same(c1m01.SetMethod, c.FindImplementationForInterfaceMember(m01.SetMethod)); 24157Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 24158Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 24159Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24160Assert.Null(i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24161Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24162Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24197var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24206Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24219Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 24255var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24264Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24289Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24328Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24329Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24330Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24359var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24368Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24381Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 24421Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24422Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24423Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24454Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24455Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24456Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24509Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 24510Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 24511Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24512Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24513Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24514Assert.Null(i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24549var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24558Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24571Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24607var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24616Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24641Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24680Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24681Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24682Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24711var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24720Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24733Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24773Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24774Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24775Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24806Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24807Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24808Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24888Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 24889Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 24890Assert.Same(i2M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24891Assert.Same(i2M01.GetMethod, i2.FindImplementationForInterfaceMember(m01.GetMethod)); 24892Assert.Same(i2M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24893Assert.Same(i2M01.SetMethod, i2.FindImplementationForInterfaceMember(m01.SetMethod)); 24935var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 24936var c2M01Get = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.GetMethod); 24937var c2M01Set = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.SetMethod); 25124var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 25142Assert.Same(c1M01Get, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 25158c1M01Set = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.SetMethod); 25173Assert.Same(c1M01Set, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 25178var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25198Assert.Same(c2M01Get, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 25210Assert.Same(c2M01Set, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 25218var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 25238Assert.Same(c3M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25250Assert.Same(c3M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25358var c2M01Get = c3.FindImplementationForInterfaceMember(m01.GetMethod); 25361var c2M01Set = c3.FindImplementationForInterfaceMember(m01.SetMethod); 25365Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 25369Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 25370Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25371Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25378Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 25379Assert.Same(c2M02.GetMethod, c3.FindImplementationForInterfaceMember(m02.GetMethod)); 25380Assert.Same(c2M02.SetMethod, c3.FindImplementationForInterfaceMember(m02.SetMethod)); 25485var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 25489var c3M01Get = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.GetMethod); 25493var c3M01Set = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.SetMethod); 25499Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 25500Assert.Same(c2M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25501Assert.Same(c2M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25569var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25572Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25640var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25643Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25934Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25935Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25936Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25937Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25939Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25940Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 25946Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 25947Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 25948Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 26022Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 26023Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 26024Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 26025Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 26026Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 26035Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 26036Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 26037Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 26256var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26265Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26280Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 26351var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26360Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26375Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 26452var cM01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 26456Assert.Same(cM01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 26457Assert.Same(cM01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26613var c1M01 = (EventSymbol)c1.FindImplementationForInterfaceMember(m01); 26617Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26618Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26624Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 26625Assert.Same(c1M01.AddMethod, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 26626Assert.Same(c1M01.RemoveMethod, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26629Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 26630Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 26631Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26634Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 26635Assert.Same(c1M01.AddMethod, c4.FindImplementationForInterfaceMember(m01.AddMethod)); 26636Assert.Same(c1M01.RemoveMethod, c4.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26640var c2M01 = (EventSymbol)c5.FindImplementationForInterfaceMember(m01); 26642Assert.Same(c2M01.AddMethod, c5.FindImplementationForInterfaceMember(m01.AddMethod)); 26643Assert.Same(c2M01.RemoveMethod, c5.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26716Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 26717Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26718Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26719Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26720Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26721Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26755Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 26756Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26757Assert.Same(c1m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26758Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26759Assert.Same(c1m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26760Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26784Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 26785Assert.Same(c1m01.AddMethod, c.FindImplementationForInterfaceMember(m01.AddMethod)); 26786Assert.Same(c1m01.RemoveMethod, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26839Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 26840Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 26841Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26842Assert.Null(i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26843Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26844Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26869Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26870Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26871Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26899var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26908Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26932Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26967Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26968Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26969Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26997Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26998Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26999Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27027Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27028Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27029Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27057Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27058Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27059Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27113Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 27114Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 27115Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27116Assert.Null(i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27117Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27118Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 27143Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27144Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27145Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27173var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 27182Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 27206Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01.AddMethod)); 27241Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27242Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27243Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27271Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27272Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27273Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27301Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27302Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27303Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27331Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27332Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27333Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27416Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 27417Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 27418Assert.Same(i2M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27419Assert.Same(i2M01.AddMethod, i2.FindImplementationForInterfaceMember(m01.AddMethod)); 27420Assert.Same(i2M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27421Assert.Same(i2M01.RemoveMethod, i2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27463var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27464var c2M01Add = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.AddMethod); 27465var c2M01Remove = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.RemoveMethod); 27698c1M01Add = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.AddMethod); 27710c1M01Remove = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.RemoveMethod); 27723Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 27727Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27728Assert.Same(c1M01Add, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27729Assert.Same(c1M01Remove, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27734var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27755Assert.Same(c2M01Add, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 27767Assert.Same(c2M01Remove, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27809c3M02Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.AddMethod); 27821c3M02Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.RemoveMethod); 27834Assert.Null(c3.FindImplementationForInterfaceMember(m02)); 27838Assert.Same(c3M02, c3.FindImplementationForInterfaceMember(m02)); 27839Assert.Same(c3M02Add, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 27840Assert.Same(c3M02Remove, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27845var c4M02 = (EventSymbol)c4.FindImplementationForInterfaceMember(m02); 27869Assert.Same(c4M02Add, c4.FindImplementationForInterfaceMember(m02.AddMethod)); 27882Assert.Same(c4M02Remove, c4.FindImplementationForInterfaceMember(m02.RemoveMethod)); 28023var c2M01Add = c3.FindImplementationForInterfaceMember(m01.AddMethod); 28026var c2M01Remove = c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 28030Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 28034Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 28035Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 28036Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 28043Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 28044Assert.Same(c2M02.AddMethod, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 28045Assert.Same(c2M02.RemoveMethod, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 28151var c3M01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 28155var c3M01Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.AddMethod); 28159var c3M01Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 28165Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 28166Assert.Same(c2M01Add, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 28167Assert.Same(c2M01Remove, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 28235var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 28238Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 28306var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 28309Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 28722Assert.Null(i2.FindImplementationForInterfaceMember(i2.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28725Assert.Null(i3.FindImplementationForInterfaceMember(i3.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28728Assert.Null(i4.FindImplementationForInterfaceMember(i4.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28731Assert.Null(i5.FindImplementationForInterfaceMember(i5.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28734Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28737Assert.Null(i7.FindImplementationForInterfaceMember(i7.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28740Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28743Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28746Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28749Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28752Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28755Assert.Null(i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28886Assert.Equal(m01, i2.FindImplementationForInterfaceMember(m01)); 28890Assert.Equal(m01, i3.FindImplementationForInterfaceMember(m01)); 28894Assert.Equal(m01, i4.FindImplementationForInterfaceMember(m01)); 28898Assert.Equal(m01, i5.FindImplementationForInterfaceMember(m01)); 28901Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28905Assert.Equal(m01, i7.FindImplementationForInterfaceMember(m01)); 28911Assert.Equal(iXM, iX.FindImplementationForInterfaceMember(iXM)); 28918Assert.Equal(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 28922Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 29205var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 29230var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 29331var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 29347var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 29438var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 29559var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29566Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 29569Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 29572Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 29576var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 29637Assert.Equal(m01, c1.FindImplementationForInterfaceMember(m01)); 29638Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 29668Assert.Equal("System.Int32 C1.I1<C1>." + opName + "(C1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 29733Assert.Equal(i2M01, c1.FindImplementationForInterfaceMember(m01)); 29734Assert.Equal(i2M01, i2.FindImplementationForInterfaceMember(m01)); 29797var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29912var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29949var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30078var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 30084Assert.Equal(c1M01, c3.FindImplementationForInterfaceMember(m01)); 30091Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 30182var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30185var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 30288var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30292Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 32169var bM1 = b.FindImplementationForInterfaceMember(biMethods[0]); 32173var bM2 = b.FindImplementationForInterfaceMember(biMethods[1]); 32176Assert.Same(bM2, b.FindImplementationForInterfaceMember(biMethods[2])); 32204var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32208var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32211Assert.Same(bM2, d.FindImplementationForInterfaceMember(diMethods[2]).OriginalDefinition); 32267var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32271var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32274Assert.Same(dM2, d.FindImplementationForInterfaceMember(diMethods[2])); 32338var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32342var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32345Assert.Equal(dM2, d.FindImplementationForInterfaceMember(diMethods[2]));
Symbols\TypeTests.cs (1)
1389MethodSymbol getGoo = (MethodSymbol)bar.FindImplementationForInterfaceMember(iGooGetGoo);