1830 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CSharp (4)
FlowAnalysis\NullableWalker.cs (1)
6801var 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)
220Assert.Equal(expectedImplementation, test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 221Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 231Assert.Equal(expectedImplementation, test2.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 232Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 594Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 595Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 692Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 693Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 794Assert.Equal("void Test.I1.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 795Assert.Equal("void Test.I1.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 896Assert.Equal("void Test.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 897Assert.Equal("void Test.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 979Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1054Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1133Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1212Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1293Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1294Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1377Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1378Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1465Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1466Assert.Equal("System.Int32 Test2.I1.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1553Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1554Assert.Equal("System.Int32 Test2.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1598Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1632Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1688Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1754Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 1789Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1829Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1886Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1920Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1938Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2031Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 2117Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 2191Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2213Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2279Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2280Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2348Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[0].GetMember("M1")).ToTestDisplayString()); 2349Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2421Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2422Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2494Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2495Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2734Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 2738Assert.Same(p1.GetMethod, test1.FindImplementationForInterfaceMember(p1.GetMethod)); 2743Assert.Same(p1.SetMethod, test1.FindImplementationForInterfaceMember(p1.SetMethod)); 2753Assert.Same(p1, test2.FindImplementationForInterfaceMember(p1)); 2758Assert.Same(getP1, test2.FindImplementationForInterfaceMember(getP1)); 2764Assert.Same(setP1, test2.FindImplementationForInterfaceMember(setP1)); 3423Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3424Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3425Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3493Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3494Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3495Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3582Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3583Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3584Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3648Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3649Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3650Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3777Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 3778Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 3779Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 3780Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 3781Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 3782Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 3783Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 3784Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 3786Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 3787Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 3788Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 3789Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 3790Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 3791Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 3792Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 3793Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 3794Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 3795Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 4012Assert.Equal("System.Int32 Test.I1.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4013Assert.Equal("System.Int32 Test.I1.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4014Assert.Equal("System.Int32 Test.I1.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4015Assert.Equal("System.Int32 Test.I1.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4016Assert.Equal("System.Int32 Test.I1.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4017Assert.Equal("System.Int32 Test.I1.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4018Assert.Equal("System.Int32 Test.I1.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4019Assert.Equal("System.Int32 Test.I1.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4021Assert.Equal("System.Int32 Test.I1.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4022Assert.Equal("System.Int32 Test.I1.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4023Assert.Equal("System.Int32 Test.I1.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4024Assert.Equal("System.Int32 Test.I1.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4025Assert.Equal("void Test.I1.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4026Assert.Equal("void Test.I1.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4027Assert.Equal("System.Int32 Test.I1.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4028Assert.Equal("System.Int32 Test.I1.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4029Assert.Equal("void Test.I1.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4030Assert.Equal("void Test.I1.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4164Assert.Equal("System.Int32 Test.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4165Assert.Equal("System.Int32 Test.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4166Assert.Equal("System.Int32 Test.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4167Assert.Equal("System.Int32 Test.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4168Assert.Equal("System.Int32 Test.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4169Assert.Equal("System.Int32 Test.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4170Assert.Equal("System.Int32 Test.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4171Assert.Equal("System.Int32 Test.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4173Assert.Equal("System.Int32 Test.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4174Assert.Equal("System.Int32 Test.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4175Assert.Equal("System.Int32 Test.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4176Assert.Equal("System.Int32 Test.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4177Assert.Equal("void Test.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4178Assert.Equal("void Test.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4179Assert.Equal("System.Int32 Test.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4180Assert.Equal("System.Int32 Test.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4181Assert.Equal("void Test.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4182Assert.Equal("void Test.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4357Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 4358Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 4359Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 4360Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 4380Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4381Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4382Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4383Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4384Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 4514Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 4515Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 4516Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 4517Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 4519Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 4520Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 4521Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 4522Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 4523Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 4922Assert.Null(derived.FindImplementationForInterfaceMember(p1)); 4923Assert.Null(derived.FindImplementationForInterfaceMember(p3)); 4924Assert.Null(derived.FindImplementationForInterfaceMember(p5)); 4925Assert.Null(derived.FindImplementationForInterfaceMember(p7)); 4951Assert.Null(derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4952Assert.Null(derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4953Assert.Null(derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4954Assert.Null(derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4955Assert.Null(derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5283Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5284Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5285Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5336Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5337Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5338Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5440Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5441Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 5442Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5443Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 5444Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5445Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 5446Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5447Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 5449Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5450Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 5451Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5452Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 5453Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5454Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 5455Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5456Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 5457Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5458Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 5625Assert.Equal("System.Int32 Test.I1." + name + "[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5626Assert.Equal("System.Int32 Test.I1." + name + "[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5627Assert.Equal("System.Int32 Test.I1." + name + "[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5628Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5629Assert.Equal("System.Int32 Test.I1." + name + "[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5630Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5631Assert.Equal("System.Int32 Test.I1." + name + "[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5632Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5636Assert.Equal("System.Int32 Test.I1.get_Item(System.SByte i)", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5637Assert.Equal("System.Int32 Test.I1.get_Item(System.Byte i)", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5638Assert.Equal("System.Int32 Test.I1.get_Item(System.Int16 i)", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5639Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt16 i)", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5640Assert.Equal("void Test.I1.set_Item(System.Int32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5641Assert.Equal("void Test.I1.set_Item(System.UInt32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5642Assert.Equal("System.Int32 Test.I1.get_Item(System.Int64 i)", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5643Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt64 i)", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5644Assert.Equal("void Test.I1.set_Item(System.Int64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5645Assert.Equal("void Test.I1.set_Item(System.UInt64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5649Assert.Equal("System.Int32 Test.I1.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5650Assert.Equal("System.Int32 Test.I1.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5651Assert.Equal("System.Int32 Test.I1.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5652Assert.Equal("System.Int32 Test.I1.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5653Assert.Equal("void Test.I1.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5654Assert.Equal("void Test.I1.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5655Assert.Equal("System.Int32 Test.I1.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5656Assert.Equal("System.Int32 Test.I1.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5657Assert.Equal("void Test.I1.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5658Assert.Equal("void Test.I1.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5768Assert.Equal("System.Int32 Test.this[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5769Assert.Equal("System.Int32 Test.this[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5770Assert.Equal("System.Int32 Test.this[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5771Assert.Equal("System.Int32 Test.this[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5772Assert.Equal("System.Int32 Test.this[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5773Assert.Equal("System.Int32 Test.this[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5774Assert.Equal("System.Int32 Test.this[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5775Assert.Equal("System.Int32 Test.this[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5777Assert.Equal("System.Int32 Test.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5778Assert.Equal("System.Int32 Test.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5779Assert.Equal("System.Int32 Test.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5780Assert.Equal("System.Int32 Test.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5781Assert.Equal("void Test.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5782Assert.Equal("void Test.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5783Assert.Equal("System.Int32 Test.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5784Assert.Equal("System.Int32 Test.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5785Assert.Equal("void Test.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5786Assert.Equal("void Test.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5914Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5915Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5916Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5917Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5937Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5938Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5939Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5940Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5941Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 6056Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 6057Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 6058Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 6059Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 6061Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 6062Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 6063Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 6064Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 6065Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 6463Assert.Same(e1, test1.FindImplementationForInterfaceMember(e1)); 6467Assert.Same(addE1, test1.FindImplementationForInterfaceMember(addE1)); 6472Assert.Same(rmvE1, test1.FindImplementationForInterfaceMember(rmvE1)); 6482Assert.Same(e1, test2.FindImplementationForInterfaceMember(e1)); 6487Assert.Same(addP1, test2.FindImplementationForInterfaceMember(addP1)); 6493Assert.Same(rmvP1, test2.FindImplementationForInterfaceMember(rmvP1)); 6989Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 6990Assert.Same(e8, derived.FindImplementationForInterfaceMember(e8)); 6992Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 6993Assert.Same(e8.AddMethod, derived.FindImplementationForInterfaceMember(e8.AddMethod)); 6994Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 6995Assert.Same(e8.RemoveMethod, derived.FindImplementationForInterfaceMember(e8.RemoveMethod)); 7165Assert.Equal("event System.Action Test.I1.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7166Assert.Equal("event System.Action Test.I1.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7168Assert.Equal("void Test.I1.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7169Assert.Equal("void Test.I1.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7170Assert.Equal("void Test.I1.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7171Assert.Equal("void Test.I1.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7272Assert.Equal("event System.Action Test.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7273Assert.Equal("event System.Action Test.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7275Assert.Equal("void Test.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7276Assert.Equal("void Test.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7277Assert.Equal("void Test.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7278Assert.Equal("void Test.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7395Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 7406Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7407Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7517Assert.Null(test2.FindImplementationForInterfaceMember(e7)); 7519Assert.Null(test2.FindImplementationForInterfaceMember(e7.AddMethod)); 7520Assert.Null(test2.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7792Assert.Null(derived.FindImplementationForInterfaceMember(e7)); 7806Assert.Null(derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7807Assert.Null(derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 8808Assert.Same(test1.GetMember(methodName), test1.FindImplementationForInterfaceMember(m1)); 8910Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8995Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9008Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9021Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9077Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9135Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9148Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9161Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9338Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 9370Assert.Same(implementation, test1.FindImplementationForInterfaceMember(m1)); 10114Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10164Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10245Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10246Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 10259Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10260Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10273Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10274Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10287Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10288Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10353Assert.Same(test1.GetMember("I1." + methodName), test1.FindImplementationForInterfaceMember(m2)); 10354Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10407Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 10408Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10421Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10422Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10435Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10436Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10449Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10450Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10463Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10464Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10633Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10634Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10647Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10648Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10651Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10654Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10657Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10753Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10754Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10767Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10768Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10781Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10782Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10795Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10796Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10809Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10810Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10861Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10910Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 11825Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 12667Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12755Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12843Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 14029Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 14045Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 14305Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14337Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14416Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14427Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14439Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14450Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 14462Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14473Assert.Null(test1.FindImplementationForInterfaceMember(p3get)); 14654Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14686Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14758Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14769Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14781Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14792Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 14803Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14818Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14831Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 14842Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 15018Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15019Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15020Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 15052Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 15053Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 15054Assert.Null(test2.FindImplementationForInterfaceMember(p1.SetMethod)); 15196Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15198Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15199Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 16025Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16026Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 16027Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 16206Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16238Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16336Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16337Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 16348Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 16349Assert.Null(test2.FindImplementationForInterfaceMember(p1get)); 16362Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 16363Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16374Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 16375Assert.Null(test2.FindImplementationForInterfaceMember(p2get)); 16388Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16389Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16400Assert.Null(test1.FindImplementationForInterfaceMember(p3set)); 16401Assert.Null(test2.FindImplementationForInterfaceMember(p3set)); 16612Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 16613Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16646Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 16647Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16802Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 16803Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 16814Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 16815Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 16828Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 16829Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 16840Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 16841Assert.Same(test2P2.SetMethod, test2.FindImplementationForInterfaceMember(p2set)); 16856Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16857Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16872Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16873Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16887Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 16888Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 16899Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 16900Assert.Null(test2.FindImplementationForInterfaceMember(p4get)); 16912Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 16913Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 16924Assert.Null(test1.FindImplementationForInterfaceMember(p5set)); 16925Assert.Null(test2.FindImplementationForInterfaceMember(p5set)); 17045Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17046Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17057Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 17058Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 17071Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 17072Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17083Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 17084Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17096Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17097Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17112Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17113Assert.Same(test2Implementation, test2.FindImplementationForInterfaceMember(accessor)); 17125Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17126Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 17141Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17142Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 17155Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17156Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17167Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17168Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17294Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17295Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17310Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17311Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17325Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 17326Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17337Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 17338Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17350Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17351Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17366Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17367Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17380Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17381Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17396Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17397Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17410Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17411Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17422Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17423Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17492Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17493Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 17494Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 17773Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17803Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor)); 18366Assert.Same(implementingProperty, test1.FindImplementationForInterfaceMember(p1)); 18403Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1)); 19873Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 19874Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 19875Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 20541Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 20558Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 23404Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 23405Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 23406Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 27657Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 27673Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 27831Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 27847Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 27999Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28014Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28026Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28041Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28053Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28068Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28160Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28176Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28256Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28271Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28283Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28298Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28310Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28325Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28337Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 28352Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28460Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28461Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1add)); 28462Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1remove)); 28554Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 28555Assert.Null(test2.FindImplementationForInterfaceMember(p1.AddMethod)); 28556Assert.Null(test2.FindImplementationForInterfaceMember(p1.RemoveMethod)); 28700Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28702Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1Add)); 28703Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1Remove)); 29523Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29524Assert.Null(test1.FindImplementationForInterfaceMember(p1.AddMethod)); 29525Assert.Null(test1.FindImplementationForInterfaceMember(p1.RemoveMethod)); 29609Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29625Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29724Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29725Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 29740Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29741Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29754Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 29755Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 29770Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29771Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29784Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 29785Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 29800Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29801Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30025Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 30026Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 30059Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 30060Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30137Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30138Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30153Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30154Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30167Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30168Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30183Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30184Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30197Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30198Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30213Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30214Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30226Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30227Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30242Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30243Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30255Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30256Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30271Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30272Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30467Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30468Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30483Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30484Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30497Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30498Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30513Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30514Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30527Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30528Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30543Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30544Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30556Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30557Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30572Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30573Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30688Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30689Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30704Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30705Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30718Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 30719Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30734Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30735Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30748Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30749Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30764Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30765Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30778Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30779Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30794Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30795Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30807Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30808Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30823Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30824Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30897Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30898Assert.Same(p1add, test1.FindImplementationForInterfaceMember(p1add)); 30899Assert.Same(p1remove, test1.FindImplementationForInterfaceMember(p1remove)); 31250Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 31266Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 33045Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33046Assert.Null(test1.FindImplementationForInterfaceMember(i1i4m1)); 33047Assert.Equal(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33048Assert.Equal(i4M1IsAbstract ? null : i1i4m1, test1.FindImplementationForInterfaceMember(i4m1)); 33050Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33051Assert.Null(i1.FindImplementationForInterfaceMember(i1i4m1)); 33052Assert.Equal(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33053Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i1.FindImplementationForInterfaceMember(i4m1)); 33055Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33056Assert.Null(i4.FindImplementationForInterfaceMember(i4m1)); 33067Assert.Equal(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 33068Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i3.FindImplementationForInterfaceMember(i4m1)); 33797Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33798Assert.Same(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33800Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33801Assert.Same(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33803Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33805Assert.Same(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 34013Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 34014Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", test1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34016Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 34017Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34019Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 34021Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i3.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34314Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34315Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i1m1)); 34316Assert.Same(i5m1, i5.FindImplementationForInterfaceMember(i1m1)); 34317Assert.Same(i5m1, i6.FindImplementationForInterfaceMember(i1m1)); 34494Assert.Null(i7.FindImplementationForInterfaceMember(i1m1)); 34495Assert.Null(i8.FindImplementationForInterfaceMember(i1m1)); 34534Assert.Same(i2m1, test5.FindImplementationForInterfaceMember(i1m1)); 34535Assert.Same(i5m1, test6.FindImplementationForInterfaceMember(i1m1)); 34536Assert.Same(i5m1, test7.FindImplementationForInterfaceMember(i1m1)); 34589Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34590Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34591Assert.Null(test3.FindImplementationForInterfaceMember(i1m1)); 34592Assert.Null(test4.FindImplementationForInterfaceMember(i1m1)); 34593Assert.Null(test5.FindImplementationForInterfaceMember(i1m1)); 34615Assert.Same(test8.GetMember<MethodSymbol>("I1.M1"), test8.FindImplementationForInterfaceMember(i1m1)); 34616Assert.Same(test9.GetMember<MethodSymbol>("I1.M1"), test9.FindImplementationForInterfaceMember(i1m1)); 34617Assert.Same(test10.GetMember<MethodSymbol>("M1"), test10.FindImplementationForInterfaceMember(i1m1)); 34618Assert.Same(test11.GetMember<MethodSymbol>("M1"), test11.FindImplementationForInterfaceMember(i1m1)); 34619Assert.Same(test12.GetMember<MethodSymbol>("M1"), test12.FindImplementationForInterfaceMember(i1m1)); 34832Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34833Assert.Same(i1m2, i1.FindImplementationForInterfaceMember(i1m2)); 34835Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 34836Assert.Null(i2.FindImplementationForInterfaceMember(i1m2)); 34837Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m1)); 34838Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m2)); 34839Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i2i1m1)); 34840Assert.Same(i2m2, i2.FindImplementationForInterfaceMember(i2i1m2)); 34842Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 34843Assert.Null(i3.FindImplementationForInterfaceMember(i1m2)); 34844Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m1)); 34845Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m2)); 34846Assert.Same(i3i1m1, i3.FindImplementationForInterfaceMember(i3i1m1)); 34847Assert.Same(i3i1m2, i3.FindImplementationForInterfaceMember(i3i1m2)); 34871Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m1)); 34872Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m2)); 34873Assert.Equal(test1i1m1, test1i1.FindImplementationForInterfaceMember(test1i1m1)); 34874Assert.Equal(test1i1m2, test1i1.FindImplementationForInterfaceMember(test1i1m2)); 34875Assert.Equal(test2i1m1, test2i1.FindImplementationForInterfaceMember(test2i1m1)); 34876Assert.Equal(test2i1m2, test2i1.FindImplementationForInterfaceMember(test2i1m2)); 34877Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m1)); 34878Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m2)); 34879Assert.Equal(test2i2m1, test2i2.FindImplementationForInterfaceMember(test2i1m1)); 34880Assert.Equal(test2i2m2, test2i2.FindImplementationForInterfaceMember(test2i1m2)); 34885Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34886Assert.Null(test1.FindImplementationForInterfaceMember(i1m2)); 34887Assert.Equal(test1i1m1, test1.FindImplementationForInterfaceMember(test1i1m1)); 34888Assert.Equal(test1i1m2, test1.FindImplementationForInterfaceMember(test1i1m2)); 34889Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34890Assert.Null(test2.FindImplementationForInterfaceMember(i1m2)); 34891Assert.Equal(test2i2m1, test2.FindImplementationForInterfaceMember(test2i1m1)); 34892Assert.Equal(test2i2m2, test2.FindImplementationForInterfaceMember(test2i1m2)); 35005Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35006Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35029Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35030Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35099Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35100Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35101Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35127Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35128Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35129Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35197Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35198Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35199Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35222Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35223Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35224Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35293Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35294Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35317Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35318Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35398Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 35399Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35489Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35490Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35598Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35599Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35711Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35712Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35824Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35825Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35930Assert.Equal("void I2.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 36247Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36248Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[6].GetMember("M1")).ToTestDisplayString()); 37094Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37102Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 37113Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37121Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 39542Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 39543Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 40127Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40135Assert.Same(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 40146Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40154Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 51107Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51108Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51260Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51261Assert.Equal("void Test1.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51398Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 51399Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51539Assert.Equal("void I3.I1.M1()", i3.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51540Assert.Equal("void I3.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51680Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51822Assert.Null(i4.FindImplementationForInterfaceMember(i1m1)); 51823Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51932Assert.Equal("void I4.I1.M1()", i4.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51933Assert.Equal("void I4.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51987Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51988Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52052Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52053Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52110Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52111Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52175Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52176Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52230Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52231Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52284Assert.Same(c2m1, c2.FindImplementationForInterfaceMember(i1m1)); 52530Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52531Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52536Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52537Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52547Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52548Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52729Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52730Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 52734Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52735Assert.Same(test12p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52740Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52741Assert.Same(test12p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52884Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 52885Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52889Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52890Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52895Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52896Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53056Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 53057Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 53061Assert.Same(i3p1.GetMethod, i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53062Assert.Same(i3p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53067Assert.Same(i3p1.SetMethod, i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53068Assert.Same(i3p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53221Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53224Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53228Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53385Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 53386Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53389Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53390Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53394Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53395Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53525Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 53526Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 53530Assert.Same(i4p1.GetMethod, i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53531Assert.Same(i4p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53536Assert.Same(i4p1.SetMethod, i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53537Assert.Same(i4p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53612Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53613Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53622Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53623Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53637Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53638Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53785Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53786Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53791Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53792Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53802Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53803Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53906Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 53910Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53920Assert.Same(c2p1Set, c2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54220Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 54221Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54226Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54227Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54237Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54238Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54389Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54390Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54391Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54462Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54463Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54464Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54562Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54563Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54564Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54633Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54634Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54635Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54701Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54702Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54703Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54795Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54796Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54797Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54889Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54890Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54891Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54977Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54978Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54979Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 57508Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57509Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57512Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57513Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57516Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57517Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57687Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57688Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 57690Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57691Assert.Same(test12p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57693Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57694Assert.Same(test12p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57835Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 57836Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57838Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57839Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57841Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57842Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57995Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 57996Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 57998Assert.Same(i3p1.AddMethod, i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57999Assert.Same(i3p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58001Assert.Same(i3p1.RemoveMethod, i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58002Assert.Same(i3p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58146Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58147Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58148Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58297Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 58298Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58300Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58301Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58303Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58304Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58427Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 58428Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 58430Assert.Same(i4p1.AddMethod, i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58431Assert.Same(i4p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58433Assert.Same(i4p1.RemoveMethod, i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58434Assert.Same(i4p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58500Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 58501Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58510Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58511Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58525Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58526Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58692Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 58702Assert.Same(c2p1Add, c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58706Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58717Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58721Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59272Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 59273Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 59276Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59277Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59280Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59281Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 62384Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62477Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62521Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62522Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62536Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62537Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62731Assert.Same(i1Normal, i1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62732Assert.Same(i1Normal.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62733Assert.Same(i1Normal.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62734Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62735Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62736Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62738Assert.Same(i1Normal, c1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62739Assert.Same(i1Normal.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62740Assert.Same(i1Normal.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62741Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62742Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62743Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62793Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(i1WinRT)); 62794Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(i1WinRT.AddMethod)); 62795Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod)); 62853Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62854Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62855Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62857Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62858Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62859Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63155Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 63156Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63157Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 63158Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 63160Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63161Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63162Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63163Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63164Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63165Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63166Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 63167Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63168Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 63169Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 63171Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63172Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63173Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63174Assert.Same(c1i1P3set, test1.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63175Assert.Same(c1i1E1add, test1.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63176Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63177Assert.Null(test1.FindImplementationForInterfaceMember(i1P1)); 63178Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 63179Assert.Null(test1.FindImplementationForInterfaceMember(i1P3)); 63180Assert.Null(test1.FindImplementationForInterfaceMember(i1E1)); 63182Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63183Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63184Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63185Assert.Same(c1i1P3set, test4.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63186Assert.Same(c1i1E1add, test4.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63187Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63188Assert.Null(test4.FindImplementationForInterfaceMember(i1P1)); 63189Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63190Assert.Null(test4.FindImplementationForInterfaceMember(i1P3)); 63191Assert.Null(test4.FindImplementationForInterfaceMember(i1E1)); 63193Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63194Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63195Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63196Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63197Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63198Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63199Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 63200Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63201Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 63202Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 63352Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63354Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63355Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63356Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63358Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63359Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63360Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63362Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63363Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63364Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63366Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63367Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63368Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63518Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63520Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63521Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63522Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63524Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63525Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63526Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63528Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63529Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63530Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63532Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63533Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63534Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63692Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63694Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63695Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63696Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63698Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63699Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63700Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 63702Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63703Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63704Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63706Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63707Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63708Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63864Assert.Null(c3.FindImplementationForInterfaceMember(i1.GetMember<PropertySymbol>("P2"))); 64085Assert.Null(i3.FindImplementationForInterfaceMember(i1P1)); 64086Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64087Assert.Null(i3.FindImplementationForInterfaceMember(i1P3)); 64088Assert.Null(i3.FindImplementationForInterfaceMember(i1E1)); 64090Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 64091Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64092Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 64093Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 64095Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64096Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64097Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64098Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64099Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64100Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64101Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 64102Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64103Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 64104Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 64106Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64107Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64108Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64109Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64110Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64111Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64112Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 64113Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64114Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 64115Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 64222Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64223Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64225Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64226Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64227Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64229Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64230Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64231Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64338Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64339Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64341Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64342Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64343Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64345Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64346Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64347Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64458Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64459Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64461Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64462Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64463Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64465Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64466Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64467Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64539Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64540Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64619Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64620Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64694Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64695Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64773Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64774Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 68891Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68892Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 68976Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68977Assert.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);