1832 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CSharp (4)
FlowAnalysis\NullableWalker.cs (1)
7171var implementationMethod = baseType.FindImplementationForInterfaceMember(constructedMethod);
Symbols\ConstraintsHelper.cs (2)
1414if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null) 1425if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null)
Symbols\PublicModel\TypeSymbol.cs (1)
125? 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)
20566Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20568c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20579c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 20581c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 20813c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M")).ToTestDisplayString()); 20815c3.FindImplementationForInterfaceMember(comp.GetTypeByMetadataName("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M")).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
PartialEventsAndConstructorsTests.cs (2)
1401Assert.Same(e, e.ContainingType.FindImplementationForInterfaceMember(ie)); 1474Assert.Same(e, e.ContainingType.FindImplementationForInterfaceMember(ie));
Semantics\RecordTests.cs (2)
24215Assert.Equal("B.Equals(B)", b.FindImplementationForInterfaceMember(b.InterfacesNoUseSiteDiagnostics()[1].GetMember("Equals")).ToDisplayString()); 24217Assert.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)
12698var impl = (EventSymbol)type.FindImplementationForInterfaceMember(member); 12709var impl = (EventSymbol)type.FindImplementationForInterfaceMember(e3); 12791var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(member); 12797var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(e3); 13039var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13045var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13130var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13136var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13329var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13337var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13416var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13422Assert.Null(b.FindImplementationForInterfaceMember(member)); 13425Assert.Null(b.FindImplementationForInterfaceMember(member)); 16506var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16514var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16723var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16729var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 16808var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16814var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 17024Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17026c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17037c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 17039c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17103Assert.Equal("void C1.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17105c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17116c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 17118c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17439c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17442c3.FindImplementationForInterfaceMember(mImplementations[0])); 17445c3.FindImplementationForInterfaceMember(m.GlobalNamespace.GetTypeMember("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M"))); 17520c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17523c3.FindImplementationForInterfaceMember(mImplementations[0])); 17604c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[1]).GetMember("M"))); 17607c3.FindImplementationForInterfaceMember(mImplementations[0])); 17685c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17688c3.FindImplementationForInterfaceMember(mImplementations[0])); 17736var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17744var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17804var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17812var 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)); 2147Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 2221Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2243Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2309Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2310Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2378Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[0].GetMember("M1")).ToTestDisplayString()); 2379Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2451Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2452Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2524Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2525Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2764Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 2768Assert.Same(p1.GetMethod, test1.FindImplementationForInterfaceMember(p1.GetMethod)); 2773Assert.Same(p1.SetMethod, test1.FindImplementationForInterfaceMember(p1.SetMethod)); 2783Assert.Same(p1, test2.FindImplementationForInterfaceMember(p1)); 2788Assert.Same(getP1, test2.FindImplementationForInterfaceMember(getP1)); 2794Assert.Same(setP1, test2.FindImplementationForInterfaceMember(setP1)); 3453Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3454Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3455Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3523Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3524Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3525Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3612Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3613Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3614Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3678Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 3679Assert.Null(test1.FindImplementationForInterfaceMember(getP1)); 3680Assert.Null(test1.FindImplementationForInterfaceMember(setP1)); 3807Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 3808Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 3809Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 3810Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 3811Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 3812Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 3813Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 3814Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 3816Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 3817Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 3818Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 3819Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 3820Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 3821Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 3822Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 3823Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 3824Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 3825Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 4042Assert.Equal("System.Int32 Test.I1.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4043Assert.Equal("System.Int32 Test.I1.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4044Assert.Equal("System.Int32 Test.I1.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4045Assert.Equal("System.Int32 Test.I1.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4046Assert.Equal("System.Int32 Test.I1.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4047Assert.Equal("System.Int32 Test.I1.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4048Assert.Equal("System.Int32 Test.I1.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4049Assert.Equal("System.Int32 Test.I1.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4051Assert.Equal("System.Int32 Test.I1.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4052Assert.Equal("System.Int32 Test.I1.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4053Assert.Equal("System.Int32 Test.I1.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4054Assert.Equal("System.Int32 Test.I1.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4055Assert.Equal("void Test.I1.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4056Assert.Equal("void Test.I1.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4057Assert.Equal("System.Int32 Test.I1.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4058Assert.Equal("System.Int32 Test.I1.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4059Assert.Equal("void Test.I1.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4060Assert.Equal("void Test.I1.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4194Assert.Equal("System.Int32 Test.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 4195Assert.Equal("System.Int32 Test.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 4196Assert.Equal("System.Int32 Test.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 4197Assert.Equal("System.Int32 Test.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 4198Assert.Equal("System.Int32 Test.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 4199Assert.Equal("System.Int32 Test.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 4200Assert.Equal("System.Int32 Test.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 4201Assert.Equal("System.Int32 Test.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 4203Assert.Equal("System.Int32 Test.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 4204Assert.Equal("System.Int32 Test.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 4205Assert.Equal("System.Int32 Test.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 4206Assert.Equal("System.Int32 Test.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 4207Assert.Equal("void Test.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 4208Assert.Equal("void Test.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 4209Assert.Equal("System.Int32 Test.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 4210Assert.Equal("System.Int32 Test.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 4211Assert.Equal("void Test.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 4212Assert.Equal("void Test.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4387Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 4388Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 4389Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 4390Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 4410Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4411Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4412Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4413Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4414Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 4544Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 4545Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 4546Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 4547Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 4549Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 4550Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 4551Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 4552Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 4553Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 4952Assert.Null(derived.FindImplementationForInterfaceMember(p1)); 4953Assert.Null(derived.FindImplementationForInterfaceMember(p3)); 4954Assert.Null(derived.FindImplementationForInterfaceMember(p5)); 4955Assert.Null(derived.FindImplementationForInterfaceMember(p7)); 4981Assert.Null(derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4982Assert.Null(derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4983Assert.Null(derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4984Assert.Null(derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4985Assert.Null(derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5313Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5314Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5315Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5366Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5367Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5368Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5470Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5471Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 5472Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5473Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 5474Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5475Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 5476Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5477Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 5479Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5480Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 5481Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5482Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 5483Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5484Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 5485Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5486Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 5487Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5488Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 5655Assert.Equal("System.Int32 Test.I1." + name + "[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5656Assert.Equal("System.Int32 Test.I1." + name + "[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5657Assert.Equal("System.Int32 Test.I1." + name + "[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5658Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5659Assert.Equal("System.Int32 Test.I1." + name + "[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5660Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5661Assert.Equal("System.Int32 Test.I1." + name + "[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5662Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5666Assert.Equal("System.Int32 Test.I1.get_Item(System.SByte i)", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5667Assert.Equal("System.Int32 Test.I1.get_Item(System.Byte i)", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5668Assert.Equal("System.Int32 Test.I1.get_Item(System.Int16 i)", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5669Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt16 i)", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5670Assert.Equal("void Test.I1.set_Item(System.Int32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5671Assert.Equal("void Test.I1.set_Item(System.UInt32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5672Assert.Equal("System.Int32 Test.I1.get_Item(System.Int64 i)", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5673Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt64 i)", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5674Assert.Equal("void Test.I1.set_Item(System.Int64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5675Assert.Equal("void Test.I1.set_Item(System.UInt64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5679Assert.Equal("System.Int32 Test.I1.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5680Assert.Equal("System.Int32 Test.I1.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5681Assert.Equal("System.Int32 Test.I1.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5682Assert.Equal("System.Int32 Test.I1.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5683Assert.Equal("void Test.I1.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5684Assert.Equal("void Test.I1.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5685Assert.Equal("System.Int32 Test.I1.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5686Assert.Equal("System.Int32 Test.I1.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5687Assert.Equal("void Test.I1.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5688Assert.Equal("void Test.I1.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5798Assert.Equal("System.Int32 Test.this[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5799Assert.Equal("System.Int32 Test.this[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5800Assert.Equal("System.Int32 Test.this[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5801Assert.Equal("System.Int32 Test.this[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5802Assert.Equal("System.Int32 Test.this[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5803Assert.Equal("System.Int32 Test.this[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5804Assert.Equal("System.Int32 Test.this[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5805Assert.Equal("System.Int32 Test.this[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5807Assert.Equal("System.Int32 Test.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5808Assert.Equal("System.Int32 Test.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5809Assert.Equal("System.Int32 Test.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5810Assert.Equal("System.Int32 Test.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5811Assert.Equal("void Test.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5812Assert.Equal("void Test.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5813Assert.Equal("System.Int32 Test.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5814Assert.Equal("System.Int32 Test.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5815Assert.Equal("void Test.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5816Assert.Equal("void Test.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5944Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5945Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5946Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5947Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5967Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5968Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5969Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5970Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5971Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 6086Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 6087Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 6088Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 6089Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 6091Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 6092Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 6093Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 6094Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 6095Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 6493Assert.Same(e1, test1.FindImplementationForInterfaceMember(e1)); 6497Assert.Same(addE1, test1.FindImplementationForInterfaceMember(addE1)); 6502Assert.Same(rmvE1, test1.FindImplementationForInterfaceMember(rmvE1)); 6512Assert.Same(e1, test2.FindImplementationForInterfaceMember(e1)); 6517Assert.Same(addP1, test2.FindImplementationForInterfaceMember(addP1)); 6523Assert.Same(rmvP1, test2.FindImplementationForInterfaceMember(rmvP1)); 7019Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 7020Assert.Same(e8, derived.FindImplementationForInterfaceMember(e8)); 7022Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7023Assert.Same(e8.AddMethod, derived.FindImplementationForInterfaceMember(e8.AddMethod)); 7024Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7025Assert.Same(e8.RemoveMethod, derived.FindImplementationForInterfaceMember(e8.RemoveMethod)); 7195Assert.Equal("event System.Action Test.I1.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7196Assert.Equal("event System.Action Test.I1.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7198Assert.Equal("void Test.I1.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7199Assert.Equal("void Test.I1.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7200Assert.Equal("void Test.I1.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7201Assert.Equal("void Test.I1.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7302Assert.Equal("event System.Action Test.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7303Assert.Equal("event System.Action Test.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7305Assert.Equal("void Test.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7306Assert.Equal("void Test.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7307Assert.Equal("void Test.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7308Assert.Equal("void Test.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7425Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 7436Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7437Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7547Assert.Null(test2.FindImplementationForInterfaceMember(e7)); 7549Assert.Null(test2.FindImplementationForInterfaceMember(e7.AddMethod)); 7550Assert.Null(test2.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7822Assert.Null(derived.FindImplementationForInterfaceMember(e7)); 7836Assert.Null(derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7837Assert.Null(derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 8838Assert.Same(test1.GetMember(methodName), test1.FindImplementationForInterfaceMember(m1)); 8940Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9025Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9038Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9051Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9107Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9165Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9178Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 9191Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9368Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 9400Assert.Same(implementation, test1.FindImplementationForInterfaceMember(m1)); 10144Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10194Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10275Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10276Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 10289Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10290Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10303Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10304Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10317Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10318Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10383Assert.Same(test1.GetMember("I1." + methodName), test1.FindImplementationForInterfaceMember(m2)); 10384Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10437Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 10438Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10451Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10452Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10465Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10466Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10479Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10480Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10493Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10494Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10710Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10711Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10724Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10725Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10728Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10731Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10734Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10830Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10831Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10844Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10845Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10858Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10859Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10872Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10873Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10886Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10887Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10938Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10987Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12001Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 12843Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12931Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 13019Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 14278Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 14294Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 14569Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14601Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14680Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14691Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14703Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14714Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 14726Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14737Assert.Null(test1.FindImplementationForInterfaceMember(p3get)); 14918Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14950Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 15022Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 15033Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 15045Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 15056Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 15067Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 15082Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 15095Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 15106Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 15282Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15283Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15284Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 15316Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 15317Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 15318Assert.Null(test2.FindImplementationForInterfaceMember(p1.SetMethod)); 15460Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15462Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15463Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 16289Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16290Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 16291Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 16470Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16502Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16600Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16601Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 16612Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 16613Assert.Null(test2.FindImplementationForInterfaceMember(p1get)); 16626Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 16627Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16638Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 16639Assert.Null(test2.FindImplementationForInterfaceMember(p2get)); 16652Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16653Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16664Assert.Null(test1.FindImplementationForInterfaceMember(p3set)); 16665Assert.Null(test2.FindImplementationForInterfaceMember(p3set)); 16876Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 16877Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16910Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 16911Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 17060Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17061Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17072Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 17073Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 17086Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 17087Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17098Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 17099Assert.Same(test2P2.SetMethod, test2.FindImplementationForInterfaceMember(p2set)); 17114Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 17115Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 17130Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17131Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 17145Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17146Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 17157Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 17158Assert.Null(test2.FindImplementationForInterfaceMember(p4get)); 17170Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17171Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17182Assert.Null(test1.FindImplementationForInterfaceMember(p5set)); 17183Assert.Null(test2.FindImplementationForInterfaceMember(p5set)); 17303Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17304Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17315Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 17316Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 17329Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 17330Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17341Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 17342Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17354Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17355Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17370Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17371Assert.Same(test2Implementation, test2.FindImplementationForInterfaceMember(accessor)); 17383Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17384Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 17399Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17400Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 17413Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17414Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17425Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17426Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17552Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17553Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17568Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17569Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17583Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 17584Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17595Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 17596Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17608Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17609Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17624Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17625Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17638Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17639Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17654Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17655Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17668Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17669Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17680Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17681Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17750Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17751Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 17752Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 18031Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 18061Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor)); 18624Assert.Same(implementingProperty, test1.FindImplementationForInterfaceMember(p1)); 18661Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1)); 20131Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 20132Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 20133Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 20799Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 20816Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 23662Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 23663Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 23664Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 28016Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28032Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 28192Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28208Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28404Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28419Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28431Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28446Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28458Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28473Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28565Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28581Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28661Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28676Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28688Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28703Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28715Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28730Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28742Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 28757Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28865Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28866Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1add)); 28867Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1remove)); 28959Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 28960Assert.Null(test2.FindImplementationForInterfaceMember(p1.AddMethod)); 28961Assert.Null(test2.FindImplementationForInterfaceMember(p1.RemoveMethod)); 29105Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 29107Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1Add)); 29108Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1Remove)); 29928Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29929Assert.Null(test1.FindImplementationForInterfaceMember(p1.AddMethod)); 29930Assert.Null(test1.FindImplementationForInterfaceMember(p1.RemoveMethod)); 30014Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30030Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30129Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30130Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 30145Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30146Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30159Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 30160Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 30175Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30176Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30189Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30190Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30205Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30206Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30430Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 30431Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 30464Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 30465Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30542Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30543Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30558Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30559Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30572Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30573Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30588Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30589Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30602Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30603Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30618Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30619Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30631Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30632Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30647Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30648Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30660Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30661Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30676Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30677Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30863Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30864Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30879Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30880Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30893Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30894Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30909Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30910Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30923Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30924Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30939Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30940Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30952Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30953Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30968Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30969Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 31084Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 31085Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 31100Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 31101Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 31114Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 31115Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 31130Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 31131Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 31144Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 31145Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 31160Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 31161Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 31174Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 31175Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 31190Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 31191Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 31203Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 31204Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 31219Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 31220Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 31293Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 31294Assert.Same(p1add, test1.FindImplementationForInterfaceMember(p1add)); 31295Assert.Same(p1remove, test1.FindImplementationForInterfaceMember(p1remove)); 31646Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 31662Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 33441Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33442Assert.Null(test1.FindImplementationForInterfaceMember(i1i4m1)); 33443Assert.Equal(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33444Assert.Equal(i4M1IsAbstract ? null : i1i4m1, test1.FindImplementationForInterfaceMember(i4m1)); 33446Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33447Assert.Null(i1.FindImplementationForInterfaceMember(i1i4m1)); 33448Assert.Equal(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33449Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i1.FindImplementationForInterfaceMember(i4m1)); 33451Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33452Assert.Null(i4.FindImplementationForInterfaceMember(i4m1)); 33463Assert.Equal(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 33464Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i3.FindImplementationForInterfaceMember(i4m1)); 34193Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 34194Assert.Same(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 34196Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 34197Assert.Same(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 34199Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 34201Assert.Same(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 34409Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 34410Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", test1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34412Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 34413Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34415Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 34417Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i3.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34710Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34711Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i1m1)); 34712Assert.Same(i5m1, i5.FindImplementationForInterfaceMember(i1m1)); 34713Assert.Same(i5m1, i6.FindImplementationForInterfaceMember(i1m1)); 34890Assert.Null(i7.FindImplementationForInterfaceMember(i1m1)); 34891Assert.Null(i8.FindImplementationForInterfaceMember(i1m1)); 34930Assert.Same(i2m1, test5.FindImplementationForInterfaceMember(i1m1)); 34931Assert.Same(i5m1, test6.FindImplementationForInterfaceMember(i1m1)); 34932Assert.Same(i5m1, test7.FindImplementationForInterfaceMember(i1m1)); 34985Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34986Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34987Assert.Null(test3.FindImplementationForInterfaceMember(i1m1)); 34988Assert.Null(test4.FindImplementationForInterfaceMember(i1m1)); 34989Assert.Null(test5.FindImplementationForInterfaceMember(i1m1)); 35011Assert.Same(test8.GetMember<MethodSymbol>("I1.M1"), test8.FindImplementationForInterfaceMember(i1m1)); 35012Assert.Same(test9.GetMember<MethodSymbol>("I1.M1"), test9.FindImplementationForInterfaceMember(i1m1)); 35013Assert.Same(test10.GetMember<MethodSymbol>("M1"), test10.FindImplementationForInterfaceMember(i1m1)); 35014Assert.Same(test11.GetMember<MethodSymbol>("M1"), test11.FindImplementationForInterfaceMember(i1m1)); 35015Assert.Same(test12.GetMember<MethodSymbol>("M1"), test12.FindImplementationForInterfaceMember(i1m1)); 35228Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 35229Assert.Same(i1m2, i1.FindImplementationForInterfaceMember(i1m2)); 35231Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 35232Assert.Null(i2.FindImplementationForInterfaceMember(i1m2)); 35233Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m1)); 35234Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m2)); 35235Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i2i1m1)); 35236Assert.Same(i2m2, i2.FindImplementationForInterfaceMember(i2i1m2)); 35238Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 35239Assert.Null(i3.FindImplementationForInterfaceMember(i1m2)); 35240Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m1)); 35241Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m2)); 35242Assert.Same(i3i1m1, i3.FindImplementationForInterfaceMember(i3i1m1)); 35243Assert.Same(i3i1m2, i3.FindImplementationForInterfaceMember(i3i1m2)); 35267Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m1)); 35268Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m2)); 35269Assert.Equal(test1i1m1, test1i1.FindImplementationForInterfaceMember(test1i1m1)); 35270Assert.Equal(test1i1m2, test1i1.FindImplementationForInterfaceMember(test1i1m2)); 35271Assert.Equal(test2i1m1, test2i1.FindImplementationForInterfaceMember(test2i1m1)); 35272Assert.Equal(test2i1m2, test2i1.FindImplementationForInterfaceMember(test2i1m2)); 35273Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m1)); 35274Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m2)); 35275Assert.Equal(test2i2m1, test2i2.FindImplementationForInterfaceMember(test2i1m1)); 35276Assert.Equal(test2i2m2, test2i2.FindImplementationForInterfaceMember(test2i1m2)); 35281Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 35282Assert.Null(test1.FindImplementationForInterfaceMember(i1m2)); 35283Assert.Equal(test1i1m1, test1.FindImplementationForInterfaceMember(test1i1m1)); 35284Assert.Equal(test1i1m2, test1.FindImplementationForInterfaceMember(test1i1m2)); 35285Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 35286Assert.Null(test2.FindImplementationForInterfaceMember(i1m2)); 35287Assert.Equal(test2i2m1, test2.FindImplementationForInterfaceMember(test2i1m1)); 35288Assert.Equal(test2i2m2, test2.FindImplementationForInterfaceMember(test2i1m2)); 35401Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35402Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35425Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35426Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35495Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35496Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35497Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35523Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35524Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35525Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35593Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35594Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35595Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35618Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35619Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35620Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35689Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35690Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35713Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35714Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35794Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 35795Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35885Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35886Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35994Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35995Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 36107Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36108Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 36220Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36221Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 36326Assert.Equal("void I2.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 36643Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36644Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[6].GetMember("M1")).ToTestDisplayString()); 37490Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37498Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 37509Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 37517Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 39938Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 39939Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 40523Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40531Assert.Same(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 40542Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 40550Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 51944Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51945Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52097Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52098Assert.Equal("void Test1.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 52235Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 52236Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52376Assert.Equal("void I3.I1.M1()", i3.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 52377Assert.Equal("void I3.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 52517Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52659Assert.Null(i4.FindImplementationForInterfaceMember(i1m1)); 52660Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52769Assert.Equal("void I4.I1.M1()", i4.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 52770Assert.Equal("void I4.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 52824Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52825Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52889Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52890Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52947Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52948Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 53012Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 53013Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 53067Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 53068Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 53121Assert.Same(c2m1, c2.FindImplementationForInterfaceMember(i1m1)); 53367Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53368Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53373Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53374Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53384Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53385Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53566Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53567Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 53571Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53572Assert.Same(test12p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53577Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53578Assert.Same(test12p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53721Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 53722Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53726Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53727Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53732Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53733Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53893Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 53894Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 53898Assert.Same(i3p1.GetMethod, i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53899Assert.Same(i3p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53904Assert.Same(i3p1.SetMethod, i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53905Assert.Same(i3p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54058Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54061Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54065Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54222Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 54223Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54226Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54227Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54231Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54232Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54362Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 54363Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 54367Assert.Same(i4p1.GetMethod, i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54368Assert.Same(i4p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54373Assert.Same(i4p1.SetMethod, i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54374Assert.Same(i4p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54449Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 54450Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54459Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54460Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54474Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54475Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54622Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 54623Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54628Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54629Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54639Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54640Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54743Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 54747Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54757Assert.Same(c2p1Set, c2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 55057Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 55058Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 55063Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 55064Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 55074Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 55075Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 55226Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55227Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55228Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 55299Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55300Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 55301Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 55399Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55400Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55401Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 55470Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55471Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55472Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 55538Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55539Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 55540Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 55632Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55633Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55634Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 55726Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55727Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55728Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 55814Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 55815Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 55816Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 58345Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 58346Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58349Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58350Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58353Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58354Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58524Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 58525Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 58527Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58528Assert.Same(test12p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58530Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58531Assert.Same(test12p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58672Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 58673Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58675Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58676Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58678Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58679Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58832Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 58833Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 58835Assert.Same(i3p1.AddMethod, i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58836Assert.Same(i3p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58838Assert.Same(i3p1.RemoveMethod, i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58839Assert.Same(i3p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58983Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58984Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58985Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59134Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 59135Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 59137Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59138Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59140Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59141Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59264Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 59265Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 59267Assert.Same(i4p1.AddMethod, i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59268Assert.Same(i4p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59270Assert.Same(i4p1.RemoveMethod, i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59271Assert.Same(i4p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59337Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 59338Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 59347Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59348Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59362Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59363Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59529Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 59539Assert.Same(c2p1Add, c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59543Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59554Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59558Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 60109Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 60110Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 60113Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 60114Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 60117Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 60118Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 63221Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63314Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63358Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63359Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63373Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63374Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 63568Assert.Same(i1Normal, i1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 63569Assert.Same(i1Normal.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 63570Assert.Same(i1Normal.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 63571Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 63572Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 63573Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63575Assert.Same(i1Normal, c1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 63576Assert.Same(i1Normal.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 63577Assert.Same(i1Normal.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 63578Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 63579Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 63580Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63630Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(i1WinRT)); 63631Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(i1WinRT.AddMethod)); 63632Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod)); 63690Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 63691Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 63692Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63694Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 63695Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 63696Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 63992Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 63993Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63994Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 63995Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 63997Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63998Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63999Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64000Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64001Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64002Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64003Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 64004Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64005Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 64006Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 64008Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64009Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64010Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64011Assert.Same(c1i1P3set, test1.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64012Assert.Same(c1i1E1add, test1.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64013Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64014Assert.Null(test1.FindImplementationForInterfaceMember(i1P1)); 64015Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 64016Assert.Null(test1.FindImplementationForInterfaceMember(i1P3)); 64017Assert.Null(test1.FindImplementationForInterfaceMember(i1E1)); 64019Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64020Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64021Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64022Assert.Same(c1i1P3set, test4.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64023Assert.Same(c1i1E1add, test4.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64024Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64025Assert.Null(test4.FindImplementationForInterfaceMember(i1P1)); 64026Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 64027Assert.Null(test4.FindImplementationForInterfaceMember(i1P3)); 64028Assert.Null(test4.FindImplementationForInterfaceMember(i1E1)); 64030Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64031Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64032Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64033Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64034Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64035Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64036Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 64037Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64038Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 64039Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 64189Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64191Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64192Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64193Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 64195Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64196Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64197Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 64199Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64200Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64201Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64203Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64204Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64205Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64355Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64357Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64358Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64359Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 64361Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64362Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64363Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 64365Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64366Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64367Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64369Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64370Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64371Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64529Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64531Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64532Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64533Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64535Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64536Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64537Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 64539Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64540Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64541Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 64543Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64544Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64545Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64701Assert.Null(c3.FindImplementationForInterfaceMember(i1.GetMember<PropertySymbol>("P2"))); 64922Assert.Null(i3.FindImplementationForInterfaceMember(i1P1)); 64923Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64924Assert.Null(i3.FindImplementationForInterfaceMember(i1P3)); 64925Assert.Null(i3.FindImplementationForInterfaceMember(i1E1)); 64927Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 64928Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64929Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 64930Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 64932Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64933Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64934Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64935Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64936Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64937Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64938Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 64939Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64940Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 64941Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 64943Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 64944Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64945Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64946Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 64947Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 64948Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 64949Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 64950Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64951Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 64952Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 65059Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 65060Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 65062Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65063Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65064Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 65066Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65067Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65068Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 65175Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 65176Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 65178Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65179Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65180Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 65182Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65183Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65184Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 65295Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 65296Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 65298Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65299Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65300Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 65302Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 65303Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 65304Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 65376Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 65377Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 65456Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 65457Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 65531Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 65532Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 65610Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 65611Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 69722Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 69723Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 69807Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 69808Assert.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)); 15691Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15692Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15693Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15694Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15697Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15699Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15700Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 15771Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15772Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15773Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15774Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15777Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15779Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15782Assert.Same(i8.GetMembers().OfType<MethodSymbol>().Single(), i8.FindImplementationForInterfaceMember(m01)); 15979var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16041var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16112var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16206var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16212Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 16215Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16218Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 16222Assert.Equal("void C2.M01()", c5.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16268Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 16269Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 16298Assert.Equal("void C1.I1.M01()", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16347Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 16348Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 16387var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16472var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16509var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16608var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16614Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16621Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 16701var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16707Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 16775var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16778var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 16857var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16860var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 16939var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16942Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17010var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17013Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17084var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17088var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17171var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17175var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17269var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17274var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17371var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17376var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 18336Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18337Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18338Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18339Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18342Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18344Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18347Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18350Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18353Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18356Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18359Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18361Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18483Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18484Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18485Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18486Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18489Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18491Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18494Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18497Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18500Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18503Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18506Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18508Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18636Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18637Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18638Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18639Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18642Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18644Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18650Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18657Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18661Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 18789Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18790Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18791Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18792Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18795Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18797Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18803Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18810Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18814Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 18975Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18976Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18977Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18978Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18981Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18983Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18986Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18989Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18992Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18995Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18998Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 19000Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 19167Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 19168Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 19169Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 19170Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 19173Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 19175Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 19181Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 19188Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 19192Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 19770var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19851var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19943var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20041var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20124var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20216var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20305var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 20396var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20470var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20553var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20633var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20742var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20749Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20752Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20755Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20759var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 20877var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20884Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20887Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20890Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20894var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 20954Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 20955Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 20985Assert.Equal("I1 C1.I1." + opName + "(I1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 21034Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 21035Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 21065Assert.Equal("I1 C1.I1." + opName + "(I1 x, System.Int32 y)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 21126Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 21127Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 21191Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 21192Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 21260var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21376var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21413var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21487var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21524var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21622var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21658var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21764Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21825Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 21829Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21939var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 21945Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 21952Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 22066var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 22072Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 22169var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22172var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 22278var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22282Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 22380var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 22384var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 23077Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 23078Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 23079Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 23080Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 23081Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 23082Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 23088Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 23089Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 23090Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 23166Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 23167Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 23168Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 23169Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 23170Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 23179Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 23180Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 23181Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 23400var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23409Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23424Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23496var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23505Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23586var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23595Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23610Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23687var cM01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 23691Assert.Same(cM01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23692Assert.Same(cM01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23843var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 23847Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23848Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23854Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 23855Assert.Same(c1M01.GetMethod, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 23856Assert.Same(c1M01.SetMethod, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 23859Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 23860Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23861Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23864Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 23865Assert.Same(c1M01.GetMethod, c4.FindImplementationForInterfaceMember(m01.GetMethod)); 23866Assert.Same(c1M01.SetMethod, c4.FindImplementationForInterfaceMember(m01.SetMethod)); 23870var c2M01 = (PropertySymbol)c5.FindImplementationForInterfaceMember(m01); 23872Assert.Same(c2M01.GetMethod, c5.FindImplementationForInterfaceMember(m01.GetMethod)); 23873Assert.Same(c2M01.SetMethod, c5.FindImplementationForInterfaceMember(m01.SetMethod)); 23945Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 23946Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 23947Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23948Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23949Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23950Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 23988Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 23989Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 23990Assert.Same(c1m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23991Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23992Assert.Same(c1m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23993Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24026Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 24027Assert.Same(c1m01.GetMethod, c.FindImplementationForInterfaceMember(m01.GetMethod)); 24028Assert.Same(c1m01.SetMethod, c.FindImplementationForInterfaceMember(m01.SetMethod)); 24079Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 24080Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 24081Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24082Assert.Null(i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24083Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24084Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24119var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24128Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24141Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 24177var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24186Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24211Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24250Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24251Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24252Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24281var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24290Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24303Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 24343Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24344Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24345Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24376Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24377Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24378Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24431Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 24432Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 24433Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24434Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 24435Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24436Assert.Null(i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24471var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24480Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24493Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24529var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24538Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24563Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24602Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24603Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24604Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24633var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24642Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24655Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24695Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24696Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24697Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24728Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24729Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24730Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24810Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 24811Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 24812Assert.Same(i2M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24813Assert.Same(i2M01.GetMethod, i2.FindImplementationForInterfaceMember(m01.GetMethod)); 24814Assert.Same(i2M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24815Assert.Same(i2M01.SetMethod, i2.FindImplementationForInterfaceMember(m01.SetMethod)); 24857var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 24858var c2M01Get = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.GetMethod); 24859var c2M01Set = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.SetMethod); 25046var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 25064Assert.Same(c1M01Get, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 25080c1M01Set = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.SetMethod); 25095Assert.Same(c1M01Set, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 25100var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25120Assert.Same(c2M01Get, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 25132Assert.Same(c2M01Set, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 25140var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 25160Assert.Same(c3M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25172Assert.Same(c3M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25280var c2M01Get = c3.FindImplementationForInterfaceMember(m01.GetMethod); 25283var c2M01Set = c3.FindImplementationForInterfaceMember(m01.SetMethod); 25287Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 25291Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 25292Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25293Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25300Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 25301Assert.Same(c2M02.GetMethod, c3.FindImplementationForInterfaceMember(m02.GetMethod)); 25302Assert.Same(c2M02.SetMethod, c3.FindImplementationForInterfaceMember(m02.SetMethod)); 25407var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 25411var c3M01Get = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.GetMethod); 25415var c3M01Set = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.SetMethod); 25421Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 25422Assert.Same(c2M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 25423Assert.Same(c2M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25491var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25494Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25562var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25565Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25856Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25857Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25858Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25859Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25861Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25862Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 25868Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 25869Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 25870Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 25944Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25945Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25946Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25947Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25948Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25957Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 25958Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 25959Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 26178var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26187Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26202Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 26273var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26282Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26297Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 26374var cM01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 26378Assert.Same(cM01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 26379Assert.Same(cM01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26535var c1M01 = (EventSymbol)c1.FindImplementationForInterfaceMember(m01); 26539Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26540Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26546Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 26547Assert.Same(c1M01.AddMethod, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 26548Assert.Same(c1M01.RemoveMethod, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26551Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 26552Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 26553Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26556Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 26557Assert.Same(c1M01.AddMethod, c4.FindImplementationForInterfaceMember(m01.AddMethod)); 26558Assert.Same(c1M01.RemoveMethod, c4.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26562var c2M01 = (EventSymbol)c5.FindImplementationForInterfaceMember(m01); 26564Assert.Same(c2M01.AddMethod, c5.FindImplementationForInterfaceMember(m01.AddMethod)); 26565Assert.Same(c2M01.RemoveMethod, c5.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26638Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 26639Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26640Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26641Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26642Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26643Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26677Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 26678Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26679Assert.Same(c1m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26680Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26681Assert.Same(c1m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26682Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26706Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 26707Assert.Same(c1m01.AddMethod, c.FindImplementationForInterfaceMember(m01.AddMethod)); 26708Assert.Same(c1m01.RemoveMethod, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26761Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 26762Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 26763Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26764Assert.Null(i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26765Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26766Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26791Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26792Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26793Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26821var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26830Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26854Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26889Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26890Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26891Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26919Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26920Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26921Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26949Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26950Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26951Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26979Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26980Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26981Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27035Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 27036Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 27037Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27038Assert.Null(i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27039Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27040Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 27065Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27066Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27067Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27095var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 27104Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 27128Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01.AddMethod)); 27163Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27164Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27165Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27193Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27194Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27195Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27223Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27224Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27225Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27253Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27254Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27255Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27338Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 27339Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 27340Assert.Same(i2M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27341Assert.Same(i2M01.AddMethod, i2.FindImplementationForInterfaceMember(m01.AddMethod)); 27342Assert.Same(i2M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27343Assert.Same(i2M01.RemoveMethod, i2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27385var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27386var c2M01Add = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.AddMethod); 27387var c2M01Remove = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.RemoveMethod); 27620c1M01Add = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.AddMethod); 27632c1M01Remove = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.RemoveMethod); 27645Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 27649Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27650Assert.Same(c1M01Add, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27651Assert.Same(c1M01Remove, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27656var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27677Assert.Same(c2M01Add, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 27689Assert.Same(c2M01Remove, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27731c3M02Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.AddMethod); 27743c3M02Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.RemoveMethod); 27756Assert.Null(c3.FindImplementationForInterfaceMember(m02)); 27760Assert.Same(c3M02, c3.FindImplementationForInterfaceMember(m02)); 27761Assert.Same(c3M02Add, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 27762Assert.Same(c3M02Remove, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27767var c4M02 = (EventSymbol)c4.FindImplementationForInterfaceMember(m02); 27791Assert.Same(c4M02Add, c4.FindImplementationForInterfaceMember(m02.AddMethod)); 27804Assert.Same(c4M02Remove, c4.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27945var c2M01Add = c3.FindImplementationForInterfaceMember(m01.AddMethod); 27948var c2M01Remove = c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 27952Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 27956Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 27957Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 27958Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27965Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 27966Assert.Same(c2M02.AddMethod, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 27967Assert.Same(c2M02.RemoveMethod, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 28073var c3M01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 28077var c3M01Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.AddMethod); 28081var c3M01Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 28087Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 28088Assert.Same(c2M01Add, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 28089Assert.Same(c2M01Remove, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 28157var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 28160Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 28228var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 28231Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 28644Assert.Null(i2.FindImplementationForInterfaceMember(i2.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28647Assert.Null(i3.FindImplementationForInterfaceMember(i3.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28650Assert.Null(i4.FindImplementationForInterfaceMember(i4.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28653Assert.Null(i5.FindImplementationForInterfaceMember(i5.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28656Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28659Assert.Null(i7.FindImplementationForInterfaceMember(i7.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28662Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28665Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28668Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28671Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28674Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28677Assert.Null(i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28808Assert.Equal(m01, i2.FindImplementationForInterfaceMember(m01)); 28812Assert.Equal(m01, i3.FindImplementationForInterfaceMember(m01)); 28816Assert.Equal(m01, i4.FindImplementationForInterfaceMember(m01)); 28820Assert.Equal(m01, i5.FindImplementationForInterfaceMember(m01)); 28823Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28827Assert.Equal(m01, i7.FindImplementationForInterfaceMember(m01)); 28833Assert.Equal(iXM, iX.FindImplementationForInterfaceMember(iXM)); 28840Assert.Equal(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 28844Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 29127var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 29152var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 29253var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 29269var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 29360var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 29481var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29488Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 29491Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 29494Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 29498var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 29559Assert.Equal(m01, c1.FindImplementationForInterfaceMember(m01)); 29560Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 29590Assert.Equal("System.Int32 C1.I1<C1>." + opName + "(C1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 29655Assert.Equal(i2M01, c1.FindImplementationForInterfaceMember(m01)); 29656Assert.Equal(i2M01, i2.FindImplementationForInterfaceMember(m01)); 29719var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29834var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29871var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30000var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 30006Assert.Equal(c1M01, c3.FindImplementationForInterfaceMember(m01)); 30013Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 30104var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30107var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 30210var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 30214Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 32091var bM1 = b.FindImplementationForInterfaceMember(biMethods[0]); 32095var bM2 = b.FindImplementationForInterfaceMember(biMethods[1]); 32098Assert.Same(bM2, b.FindImplementationForInterfaceMember(biMethods[2])); 32126var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32130var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32133Assert.Same(bM2, d.FindImplementationForInterfaceMember(diMethods[2]).OriginalDefinition); 32189var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32193var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32196Assert.Same(dM2, d.FindImplementationForInterfaceMember(diMethods[2])); 32260var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 32264var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 32267Assert.Equal(dM2, d.FindImplementationForInterfaceMember(diMethods[2]));
Symbols\TypeTests.cs (1)
1389MethodSymbol getGoo = (MethodSymbol)bar.FindImplementationForInterfaceMember(iGooGetGoo);