1799 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CSharp (4)
FlowAnalysis\NullableWalker.cs (1)
5788var implementationMethod = baseType.FindImplementationForInterfaceMember(constructedMethod);
Symbols\ConstraintsHelper.cs (2)
1301if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null) 1312if (m.IsStatic && m.IsImplementableInterfaceMember() && iface.FindImplementationForInterfaceMember(m) is null)
Symbols\PublicModel\TypeSymbol.cs (1)
113? 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)
20569Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20571c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString()); 20582c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 20584c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 20814c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M")).ToTestDisplayString()); 20816c3.FindImplementationForInterfaceMember(comp.GetTypeByMetadataName("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M")).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
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)
12682var impl = (EventSymbol)type.FindImplementationForInterfaceMember(member); 12693var impl = (EventSymbol)type.FindImplementationForInterfaceMember(e3); 12775var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(member); 12781var impl = (EventSymbol)b1.FindImplementationForInterfaceMember(e3); 13023var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13029var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13114var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13120var impl = (PropertySymbol)b.FindImplementationForInterfaceMember(member); 13313var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13321var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13400var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 13406Assert.Null(b.FindImplementationForInterfaceMember(member)); 13409Assert.Null(b.FindImplementationForInterfaceMember(member)); 16472var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16480var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 16683var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16689var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 16765var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented); 16771var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented); 16981Assert.Equal("void C2.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 16983c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 16994c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 16996c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17060Assert.Equal("void C1.M1()", c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17062c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M1")).ToTestDisplayString(includeNonNullable: true)); 17073c2.FindImplementationForInterfaceMember(((TypeSymbol)c2Interfaces[0]).GetMember("M2"))); 17075c2.FindImplementationForInterfaceMember(((TypeSymbol)c1Interfaces[0]).GetMember("M2"))); 17396c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17399c3.FindImplementationForInterfaceMember(mImplementations[0])); 17402c3.FindImplementationForInterfaceMember(m.GlobalNamespace.GetTypeMember("C4").InterfacesNoUseSiteDiagnostics()[0].GetMember("M"))); 17477c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17480c3.FindImplementationForInterfaceMember(mImplementations[0])); 17561c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[1]).GetMember("M"))); 17564c3.FindImplementationForInterfaceMember(mImplementations[0])); 17642c3.FindImplementationForInterfaceMember(((TypeSymbol)c3Interfaces[0]).GetMember("M"))); 17645c3.FindImplementationForInterfaceMember(mImplementations[0])); 17693var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17701var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17761var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member); 17769var implementing = (MethodSymbol)b.FindImplementationForInterfaceMember(member);
Semantics\RecordTests.cs (2)
24139Assert.Equal("B.Equals(B)", b.FindImplementationForInterfaceMember(b.InterfacesNoUseSiteDiagnostics()[1].GetMember("Equals")).ToDisplayString()); 24141Assert.Equal("C.Equals(C?)", c.FindImplementationForInterfaceMember(c.InterfacesNoUseSiteDiagnostics()[1].GetMember("Equals")).ToDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1743)
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 (1008)
229Assert.Equal(expectedImplementation, test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 230Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 240Assert.Equal(expectedImplementation, test2.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 241Assert.Same(m1, i1.FindImplementationForInterfaceMember(m1)); 603Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 604Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 701Assert.Same(m1, derived.FindImplementationForInterfaceMember(m1)); 702Assert.Same(m2, derived.FindImplementationForInterfaceMember(m2)); 803Assert.Equal("void Test.I1.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 804Assert.Equal("void Test.I1.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 905Assert.Equal("void Test.M1()", derived.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 906Assert.Equal("void Test.M2()", derived.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 988Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1063Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1142Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1221Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1302Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1303Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1386Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1387Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 1474Assert.Equal("void Test2.I1.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1475Assert.Equal("System.Int32 Test2.I1.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1562Assert.Equal("void Test2.M1()", test1.FindImplementationForInterfaceMember(m1).ToTestDisplayString()); 1563Assert.Equal("System.Int32 Test2.M2()", test1.FindImplementationForInterfaceMember(m2).ToTestDisplayString()); 1607Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1641Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1697Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1763Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 1798Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1838Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1895Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 1929Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 1947Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2040Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 2126Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 2200Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2222Assert.Same(m1, test2.FindImplementationForInterfaceMember(m1)); 2288Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2289Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2357Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[0].GetMember("M1")).ToTestDisplayString()); 2358Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 2430Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2431Assert.Equal("void I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2503Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 2504Assert.Equal("void I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 2743Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 2747Assert.Same(p1.GetMethod, test1.FindImplementationForInterfaceMember(p1.GetMethod)); 2752Assert.Same(p1.SetMethod, test1.FindImplementationForInterfaceMember(p1.SetMethod)); 2762Assert.Same(p1, test2.FindImplementationForInterfaceMember(p1)); 2767Assert.Same(getP1, test2.FindImplementationForInterfaceMember(getP1)); 2773Assert.Same(setP1, test2.FindImplementationForInterfaceMember(setP1)); 3396Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3397Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3398Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3452Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 3453Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 3454Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 3581Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 3582Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 3583Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 3584Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 3585Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 3586Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 3587Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 3588Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 3590Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 3591Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 3592Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 3593Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 3594Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 3595Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 3596Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 3597Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 3598Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 3599Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 3816Assert.Equal("System.Int32 Test.I1.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 3817Assert.Equal("System.Int32 Test.I1.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 3818Assert.Equal("System.Int32 Test.I1.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 3819Assert.Equal("System.Int32 Test.I1.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 3820Assert.Equal("System.Int32 Test.I1.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 3821Assert.Equal("System.Int32 Test.I1.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 3822Assert.Equal("System.Int32 Test.I1.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 3823Assert.Equal("System.Int32 Test.I1.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 3825Assert.Equal("System.Int32 Test.I1.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 3826Assert.Equal("System.Int32 Test.I1.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 3827Assert.Equal("System.Int32 Test.I1.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 3828Assert.Equal("System.Int32 Test.I1.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 3829Assert.Equal("void Test.I1.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 3830Assert.Equal("void Test.I1.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 3831Assert.Equal("System.Int32 Test.I1.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 3832Assert.Equal("System.Int32 Test.I1.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 3833Assert.Equal("void Test.I1.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 3834Assert.Equal("void Test.I1.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 3968Assert.Equal("System.Int32 Test.P1 { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 3969Assert.Equal("System.Int32 Test.P2 { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 3970Assert.Equal("System.Int32 Test.P3 { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 3971Assert.Equal("System.Int32 Test.P4 { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 3972Assert.Equal("System.Int32 Test.P5 { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 3973Assert.Equal("System.Int32 Test.P6 { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 3974Assert.Equal("System.Int32 Test.P7 { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 3975Assert.Equal("System.Int32 Test.P8 { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 3977Assert.Equal("System.Int32 Test.P1.get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 3978Assert.Equal("System.Int32 Test.P2.get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 3979Assert.Equal("System.Int32 Test.P3.get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 3980Assert.Equal("System.Int32 Test.P4.get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 3981Assert.Equal("void Test.P5.set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 3982Assert.Equal("void Test.P6.set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 3983Assert.Equal("System.Int32 Test.P7.get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 3984Assert.Equal("System.Int32 Test.P8.get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 3985Assert.Equal("void Test.P7.set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 3986Assert.Equal("void Test.P8.set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 4161Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 4162Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 4163Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 4164Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 4184Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4185Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4186Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4187Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4188Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 4318Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 4319Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 4320Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 4321Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 4323Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 4324Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 4325Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 4326Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 4327Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 4726Assert.Null(derived.FindImplementationForInterfaceMember(p1)); 4727Assert.Null(derived.FindImplementationForInterfaceMember(p3)); 4728Assert.Null(derived.FindImplementationForInterfaceMember(p5)); 4729Assert.Null(derived.FindImplementationForInterfaceMember(p7)); 4755Assert.Null(derived.FindImplementationForInterfaceMember(p1.GetMethod)); 4756Assert.Null(derived.FindImplementationForInterfaceMember(p3.GetMethod)); 4757Assert.Null(derived.FindImplementationForInterfaceMember(p5.SetMethod)); 4758Assert.Null(derived.FindImplementationForInterfaceMember(p7.GetMethod)); 4759Assert.Null(derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5087Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5088Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5089Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5140Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 5141Assert.Same(getP1, test1.FindImplementationForInterfaceMember(getP1)); 5142Assert.Same(setP1, test1.FindImplementationForInterfaceMember(setP1)); 5244Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5245Assert.Same(p2, derived.FindImplementationForInterfaceMember(p2)); 5246Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5247Assert.Same(p4, derived.FindImplementationForInterfaceMember(p4)); 5248Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5249Assert.Same(p6, derived.FindImplementationForInterfaceMember(p6)); 5250Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5251Assert.Same(p8, derived.FindImplementationForInterfaceMember(p8)); 5253Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5254Assert.Same(p2.GetMethod, derived.FindImplementationForInterfaceMember(p2.GetMethod)); 5255Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5256Assert.Same(p4.GetMethod, derived.FindImplementationForInterfaceMember(p4.GetMethod)); 5257Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5258Assert.Same(p6.SetMethod, derived.FindImplementationForInterfaceMember(p6.SetMethod)); 5259Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5260Assert.Same(p8.GetMethod, derived.FindImplementationForInterfaceMember(p8.GetMethod)); 5261Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5262Assert.Same(p8.SetMethod, derived.FindImplementationForInterfaceMember(p8.SetMethod)); 5429Assert.Equal("System.Int32 Test.I1." + name + "[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5430Assert.Equal("System.Int32 Test.I1." + name + "[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5431Assert.Equal("System.Int32 Test.I1." + name + "[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5432Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5433Assert.Equal("System.Int32 Test.I1." + name + "[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5434Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5435Assert.Equal("System.Int32 Test.I1." + name + "[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5436Assert.Equal("System.Int32 Test.I1." + name + "[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5440Assert.Equal("System.Int32 Test.I1.get_Item(System.SByte i)", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5441Assert.Equal("System.Int32 Test.I1.get_Item(System.Byte i)", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5442Assert.Equal("System.Int32 Test.I1.get_Item(System.Int16 i)", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5443Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt16 i)", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5444Assert.Equal("void Test.I1.set_Item(System.Int32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5445Assert.Equal("void Test.I1.set_Item(System.UInt32 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5446Assert.Equal("System.Int32 Test.I1.get_Item(System.Int64 i)", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5447Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt64 i)", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5448Assert.Equal("void Test.I1.set_Item(System.Int64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5449Assert.Equal("void Test.I1.set_Item(System.UInt64 i, System.Int32 value)", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5453Assert.Equal("System.Int32 Test.I1.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5454Assert.Equal("System.Int32 Test.I1.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5455Assert.Equal("System.Int32 Test.I1.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5456Assert.Equal("System.Int32 Test.I1.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5457Assert.Equal("void Test.I1.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5458Assert.Equal("void Test.I1.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5459Assert.Equal("System.Int32 Test.I1.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5460Assert.Equal("System.Int32 Test.I1.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5461Assert.Equal("void Test.I1.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5462Assert.Equal("void Test.I1.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5572Assert.Equal("System.Int32 Test.this[System.SByte i] { get; }", derived.FindImplementationForInterfaceMember(p1).ToTestDisplayString()); 5573Assert.Equal("System.Int32 Test.this[System.Byte i] { get; }", derived.FindImplementationForInterfaceMember(p2).ToTestDisplayString()); 5574Assert.Equal("System.Int32 Test.this[System.Int16 i] { get; }", derived.FindImplementationForInterfaceMember(p3).ToTestDisplayString()); 5575Assert.Equal("System.Int32 Test.this[System.UInt16 i] { get; }", derived.FindImplementationForInterfaceMember(p4).ToTestDisplayString()); 5576Assert.Equal("System.Int32 Test.this[System.Int32 i] { set; }", derived.FindImplementationForInterfaceMember(p5).ToTestDisplayString()); 5577Assert.Equal("System.Int32 Test.this[System.UInt32 i] { set; }", derived.FindImplementationForInterfaceMember(p6).ToTestDisplayString()); 5578Assert.Equal("System.Int32 Test.this[System.Int64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p7).ToTestDisplayString()); 5579Assert.Equal("System.Int32 Test.this[System.UInt64 i] { get; set; }", derived.FindImplementationForInterfaceMember(p8).ToTestDisplayString()); 5581Assert.Equal("System.Int32 Test.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.GetMethod).ToTestDisplayString()); 5582Assert.Equal("System.Int32 Test.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.GetMethod).ToTestDisplayString()); 5583Assert.Equal("System.Int32 Test.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.GetMethod).ToTestDisplayString()); 5584Assert.Equal("System.Int32 Test.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.GetMethod).ToTestDisplayString()); 5585Assert.Equal("void Test.this[System.Int32 i].set", derived.FindImplementationForInterfaceMember(p5.SetMethod).ToTestDisplayString()); 5586Assert.Equal("void Test.this[System.UInt32 i].set", derived.FindImplementationForInterfaceMember(p6.SetMethod).ToTestDisplayString()); 5587Assert.Equal("System.Int32 Test.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.GetMethod).ToTestDisplayString()); 5588Assert.Equal("System.Int32 Test.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.GetMethod).ToTestDisplayString()); 5589Assert.Equal("void Test.this[System.Int64 i].set", derived.FindImplementationForInterfaceMember(p7.SetMethod).ToTestDisplayString()); 5590Assert.Equal("void Test.this[System.UInt64 i].set", derived.FindImplementationForInterfaceMember(p8.SetMethod).ToTestDisplayString()); 5718Assert.Same(p1, derived.FindImplementationForInterfaceMember(p1)); 5719Assert.Same(p3, derived.FindImplementationForInterfaceMember(p3)); 5720Assert.Same(p5, derived.FindImplementationForInterfaceMember(p5)); 5721Assert.Same(p7, derived.FindImplementationForInterfaceMember(p7)); 5741Assert.Same(p1.GetMethod, derived.FindImplementationForInterfaceMember(p1.GetMethod)); 5742Assert.Same(p3.GetMethod, derived.FindImplementationForInterfaceMember(p3.GetMethod)); 5743Assert.Same(p5.SetMethod, derived.FindImplementationForInterfaceMember(p5.SetMethod)); 5744Assert.Same(p7.GetMethod, derived.FindImplementationForInterfaceMember(p7.GetMethod)); 5745Assert.Same(p7.SetMethod, derived.FindImplementationForInterfaceMember(p7.SetMethod)); 5860Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 5861Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 5862Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 5863Assert.Null(test2.FindImplementationForInterfaceMember(p7)); 5865Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 5866Assert.Null(test2.FindImplementationForInterfaceMember(p3.GetMethod)); 5867Assert.Null(test2.FindImplementationForInterfaceMember(p5.SetMethod)); 5868Assert.Null(test2.FindImplementationForInterfaceMember(p7.GetMethod)); 5869Assert.Null(test2.FindImplementationForInterfaceMember(p7.SetMethod)); 6267Assert.Same(e1, test1.FindImplementationForInterfaceMember(e1)); 6271Assert.Same(addE1, test1.FindImplementationForInterfaceMember(addE1)); 6276Assert.Same(rmvE1, test1.FindImplementationForInterfaceMember(rmvE1)); 6286Assert.Same(e1, test2.FindImplementationForInterfaceMember(e1)); 6291Assert.Same(addP1, test2.FindImplementationForInterfaceMember(addP1)); 6297Assert.Same(rmvP1, test2.FindImplementationForInterfaceMember(rmvP1)); 6793Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 6794Assert.Same(e8, derived.FindImplementationForInterfaceMember(e8)); 6796Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 6797Assert.Same(e8.AddMethod, derived.FindImplementationForInterfaceMember(e8.AddMethod)); 6798Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 6799Assert.Same(e8.RemoveMethod, derived.FindImplementationForInterfaceMember(e8.RemoveMethod)); 6969Assert.Equal("event System.Action Test.I1.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 6970Assert.Equal("event System.Action Test.I1.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 6972Assert.Equal("void Test.I1.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 6973Assert.Equal("void Test.I1.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 6974Assert.Equal("void Test.I1.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 6975Assert.Equal("void Test.I1.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7076Assert.Equal("event System.Action Test.E7", derived.FindImplementationForInterfaceMember(e7).ToTestDisplayString()); 7077Assert.Equal("event System.Action Test.E8", derived.FindImplementationForInterfaceMember(e8).ToTestDisplayString()); 7079Assert.Equal("void Test.E7.add", derived.FindImplementationForInterfaceMember(e7.AddMethod).ToTestDisplayString()); 7080Assert.Equal("void Test.E8.add", derived.FindImplementationForInterfaceMember(e8.AddMethod).ToTestDisplayString()); 7081Assert.Equal("void Test.E7.remove", derived.FindImplementationForInterfaceMember(e7.RemoveMethod).ToTestDisplayString()); 7082Assert.Equal("void Test.E8.remove", derived.FindImplementationForInterfaceMember(e8.RemoveMethod).ToTestDisplayString()); 7199Assert.Same(e7, derived.FindImplementationForInterfaceMember(e7)); 7210Assert.Same(e7.AddMethod, derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7211Assert.Same(e7.RemoveMethod, derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7321Assert.Null(test2.FindImplementationForInterfaceMember(e7)); 7323Assert.Null(test2.FindImplementationForInterfaceMember(e7.AddMethod)); 7324Assert.Null(test2.FindImplementationForInterfaceMember(e7.RemoveMethod)); 7596Assert.Null(derived.FindImplementationForInterfaceMember(e7)); 7610Assert.Null(derived.FindImplementationForInterfaceMember(e7.AddMethod)); 7611Assert.Null(derived.FindImplementationForInterfaceMember(e7.RemoveMethod)); 8612Assert.Same(test1.GetMember(methodName), test1.FindImplementationForInterfaceMember(m1)); 8714Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8799Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8812Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 8825Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 8881Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8939Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 8952Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 8965Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 9142Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 9174Assert.Same(implementation, test1.FindImplementationForInterfaceMember(m1)); 9918Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 9968Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10049Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10050Assert.Null(test2.FindImplementationForInterfaceMember(m1)); 10063Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10064Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10077Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10078Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10091Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10092Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10157Assert.Same(test1.GetMember("I1." + methodName), test1.FindImplementationForInterfaceMember(m2)); 10158Assert.Null(test2.FindImplementationForInterfaceMember(m2)); 10211Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 10212Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10225Assert.Same(m2, test1.FindImplementationForInterfaceMember(m2)); 10226Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10239Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10240Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10253Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10254Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10267Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10268Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10437Assert.Null(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)); 10455Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10458Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10461Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10557Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10558Assert.Same(test2.GetMember("I1.M1"), test2.FindImplementationForInterfaceMember(m1)); 10571Assert.Null(test1.FindImplementationForInterfaceMember(m2)); 10572Assert.Same(test2.GetMember("I1.M2"), test2.FindImplementationForInterfaceMember(m2)); 10585Assert.Null(test1.FindImplementationForInterfaceMember(m3)); 10586Assert.Null(test2.FindImplementationForInterfaceMember(m3)); 10599Assert.Null(test1.FindImplementationForInterfaceMember(m4)); 10600Assert.Null(test2.FindImplementationForInterfaceMember(m4)); 10613Assert.Null(test1.FindImplementationForInterfaceMember(m5)); 10614Assert.Null(test2.FindImplementationForInterfaceMember(m5)); 10665Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 10714Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 11629Assert.Null(test1.FindImplementationForInterfaceMember(m1)); 12471Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12559Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 12647Assert.Same(m1, test1.FindImplementationForInterfaceMember(m1)); 13833Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 13849Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 14109Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14141Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14220Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14231Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14243Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14254Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 14266Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14277Assert.Null(test1.FindImplementationForInterfaceMember(p3get)); 14458Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14490Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14562Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 14573Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 14585Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 14596Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 14607Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 14622Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 14635Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 14646Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 14822Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 14823Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 14824Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 14856Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 14857Assert.Null(test2.FindImplementationForInterfaceMember(p1.GetMethod)); 14858Assert.Null(test2.FindImplementationForInterfaceMember(p1.SetMethod)); 15000Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 15002Assert.Same(test1P1.GetMethod, test1.FindImplementationForInterfaceMember(p1get)); 15003Assert.Same(test1P1.SetMethod, test1.FindImplementationForInterfaceMember(p1set)); 15829Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 15830Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 15831Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 16010Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16042Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16140Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16141Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 16152Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 16153Assert.Null(test2.FindImplementationForInterfaceMember(p1get)); 16166Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 16167Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16178Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 16179Assert.Null(test2.FindImplementationForInterfaceMember(p2get)); 16192Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16193Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16204Assert.Null(test1.FindImplementationForInterfaceMember(p3set)); 16205Assert.Null(test2.FindImplementationForInterfaceMember(p3set)); 16416Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 16417Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 16450Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 16451Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16606Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 16607Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 16618Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 16619Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 16632Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 16633Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 16644Assert.Same(p2set, test1.FindImplementationForInterfaceMember(p2set)); 16645Assert.Same(test2P2.SetMethod, test2.FindImplementationForInterfaceMember(p2set)); 16660Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 16661Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 16676Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16677Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16691Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 16692Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 16703Assert.Null(test1.FindImplementationForInterfaceMember(p4get)); 16704Assert.Null(test2.FindImplementationForInterfaceMember(p4get)); 16716Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 16717Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 16728Assert.Null(test1.FindImplementationForInterfaceMember(p5set)); 16729Assert.Null(test2.FindImplementationForInterfaceMember(p5set)); 16849Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 16850Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 16861Assert.Null(test1.FindImplementationForInterfaceMember(p1get)); 16862Assert.Same(test2P1.GetMethod, test2.FindImplementationForInterfaceMember(p1get)); 16875Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 16876Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 16887Assert.Same(p2get, test1.FindImplementationForInterfaceMember(p2get)); 16888Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 16900Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 16901Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 16916Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 16917Assert.Same(test2Implementation, test2.FindImplementationForInterfaceMember(accessor)); 16929Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 16930Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 16945Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 16946Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 16959Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 16960Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 16971Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 16972Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17098Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 17099Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 17114Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17115Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17129Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 17130Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 17141Assert.Null(test1.FindImplementationForInterfaceMember(p2get)); 17142Assert.Same(test2P2.GetMethod, test2.FindImplementationForInterfaceMember(p2get)); 17154Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17155Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17170Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17171Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17184Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 17185Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17200Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 17201Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 17214Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 17215Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 17226Assert.Null(test1.FindImplementationForInterfaceMember(p5get)); 17227Assert.Null(test2.FindImplementationForInterfaceMember(p5get)); 17296Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17297Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 17298Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 17577Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 17607Assert.Same(accessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, test1.FindImplementationForInterfaceMember(accessor)); 18170Assert.Same(implementingProperty, test1.FindImplementationForInterfaceMember(p1)); 18207Assert.Same(access != Accessibility.Private ? implementingMethod : null, test1.FindImplementationForInterfaceMember(m1)); 19677Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 19678Assert.Same(p1get, test1.FindImplementationForInterfaceMember(p1get)); 19679Assert.Same(p1set, test1.FindImplementationForInterfaceMember(p1set)); 20345Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 20362Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 23208Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 23209Assert.Null(test1.FindImplementationForInterfaceMember(p1.GetMethod)); 23210Assert.Null(test1.FindImplementationForInterfaceMember(p1.SetMethod)); 27461Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 27477Assert.Same(implementation, test1.FindImplementationForInterfaceMember(accessor)); 27635Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 27651Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 27803Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 27818Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 27830Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 27845Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 27857Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 27872Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 27964Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 27980Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28060Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 28075Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28087Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 28102Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 28114Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 28129Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28141Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 28156Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 28264Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28265Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1add)); 28266Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1remove)); 28358Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 28359Assert.Null(test2.FindImplementationForInterfaceMember(p1.AddMethod)); 28360Assert.Null(test2.FindImplementationForInterfaceMember(p1.RemoveMethod)); 28504Assert.Same(test1P1, test1.FindImplementationForInterfaceMember(p1)); 28506Assert.Same(test1P1.AddMethod, test1.FindImplementationForInterfaceMember(p1Add)); 28507Assert.Same(test1P1.RemoveMethod, test1.FindImplementationForInterfaceMember(p1Remove)); 29327Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29328Assert.Null(test1.FindImplementationForInterfaceMember(p1.AddMethod)); 29329Assert.Null(test1.FindImplementationForInterfaceMember(p1.RemoveMethod)); 29413Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29429Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29528Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 29529Assert.Null(test2.FindImplementationForInterfaceMember(p1)); 29544Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29545Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29558Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 29559Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 29574Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29575Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29588Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 29589Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 29604Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 29605Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29829Assert.Same(test1P2, test1.FindImplementationForInterfaceMember(p2)); 29830Assert.Null(test2.FindImplementationForInterfaceMember(p2)); 29863Assert.Same(implementedBy, test1.FindImplementationForInterfaceMember(accessor)); 29864Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 29941Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 29942Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 29957Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 29958Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 29971Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 29972Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 29987Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 29988Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30001Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30002Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30017Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30018Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30030Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30031Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30046Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30047Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30059Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30060Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30075Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30076Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30271Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30272Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30287Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30288Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30301Assert.Same(p2, test1.FindImplementationForInterfaceMember(p2)); 30302Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30317Assert.Same(accessor, test1.FindImplementationForInterfaceMember(accessor)); 30318Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30331Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30332Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30347Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30348Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30360Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30361Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30376Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30377Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30492Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 30493Assert.Same(test2P1, test2.FindImplementationForInterfaceMember(p1)); 30508Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30509Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30522Assert.Null(test1.FindImplementationForInterfaceMember(p2)); 30523Assert.Same(test2P2, test2.FindImplementationForInterfaceMember(p2)); 30538Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30539Assert.Same(implementation, test2.FindImplementationForInterfaceMember(accessor)); 30552Assert.Null(test1.FindImplementationForInterfaceMember(p3)); 30553Assert.Null(test2.FindImplementationForInterfaceMember(p3)); 30568Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30569Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30582Assert.Null(test1.FindImplementationForInterfaceMember(p4)); 30583Assert.Null(test2.FindImplementationForInterfaceMember(p4)); 30598Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30599Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30611Assert.Null(test1.FindImplementationForInterfaceMember(p5)); 30612Assert.Null(test2.FindImplementationForInterfaceMember(p5)); 30627Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 30628Assert.Null(test2.FindImplementationForInterfaceMember(accessor)); 30701Assert.Same(p1, test1.FindImplementationForInterfaceMember(p1)); 30702Assert.Same(p1add, test1.FindImplementationForInterfaceMember(p1add)); 30703Assert.Same(p1remove, test1.FindImplementationForInterfaceMember(p1remove)); 31054Assert.Null(test1.FindImplementationForInterfaceMember(p1)); 31070Assert.Null(test1.FindImplementationForInterfaceMember(accessor)); 32849Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 32850Assert.Null(test1.FindImplementationForInterfaceMember(i1i4m1)); 32851Assert.Equal(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 32852Assert.Equal(i4M1IsAbstract ? null : i1i4m1, test1.FindImplementationForInterfaceMember(i4m1)); 32854Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 32855Assert.Null(i1.FindImplementationForInterfaceMember(i1i4m1)); 32856Assert.Equal(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 32857Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i1.FindImplementationForInterfaceMember(i4m1)); 32859Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 32860Assert.Null(i4.FindImplementationForInterfaceMember(i4m1)); 32871Assert.Equal(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 32872Assert.Equal(i4M1IsAbstract ? null : i1i4m1, i3.FindImplementationForInterfaceMember(i4m1)); 33601Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33602Assert.Same(i1i2m1, test1.FindImplementationForInterfaceMember(i2m1)); 33604Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33605Assert.Same(i1i2m1, i1.FindImplementationForInterfaceMember(i2m1)); 33607Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33609Assert.Same(i1i2m1, i3.FindImplementationForInterfaceMember(i2m1)); 33817Assert.Null(test1.FindImplementationForInterfaceMember(i1i2m1)); 33818Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", test1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 33820Assert.Null(i1.FindImplementationForInterfaceMember(i1i2m1)); 33821Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i1.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 33823Assert.Null(i2.FindImplementationForInterfaceMember(i2m1)); 33825Assert.Equal("System.Threading.Tasks.Task I1.I2.M1()", i3.FindImplementationForInterfaceMember(i2m1).ToTestDisplayString()); 34118Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34119Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i1m1)); 34120Assert.Same(i5m1, i5.FindImplementationForInterfaceMember(i1m1)); 34121Assert.Same(i5m1, i6.FindImplementationForInterfaceMember(i1m1)); 34298Assert.Null(i7.FindImplementationForInterfaceMember(i1m1)); 34299Assert.Null(i8.FindImplementationForInterfaceMember(i1m1)); 34338Assert.Same(i2m1, test5.FindImplementationForInterfaceMember(i1m1)); 34339Assert.Same(i5m1, test6.FindImplementationForInterfaceMember(i1m1)); 34340Assert.Same(i5m1, test7.FindImplementationForInterfaceMember(i1m1)); 34393Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34394Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34395Assert.Null(test3.FindImplementationForInterfaceMember(i1m1)); 34396Assert.Null(test4.FindImplementationForInterfaceMember(i1m1)); 34397Assert.Null(test5.FindImplementationForInterfaceMember(i1m1)); 34419Assert.Same(test8.GetMember<MethodSymbol>("I1.M1"), test8.FindImplementationForInterfaceMember(i1m1)); 34420Assert.Same(test9.GetMember<MethodSymbol>("I1.M1"), test9.FindImplementationForInterfaceMember(i1m1)); 34421Assert.Same(test10.GetMember<MethodSymbol>("M1"), test10.FindImplementationForInterfaceMember(i1m1)); 34422Assert.Same(test11.GetMember<MethodSymbol>("M1"), test11.FindImplementationForInterfaceMember(i1m1)); 34423Assert.Same(test12.GetMember<MethodSymbol>("M1"), test12.FindImplementationForInterfaceMember(i1m1)); 34636Assert.Same(i1m1, i1.FindImplementationForInterfaceMember(i1m1)); 34637Assert.Same(i1m2, i1.FindImplementationForInterfaceMember(i1m2)); 34639Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 34640Assert.Null(i2.FindImplementationForInterfaceMember(i1m2)); 34641Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m1)); 34642Assert.Null(i2.FindImplementationForInterfaceMember(i3i1m2)); 34643Assert.Same(i2m1, i2.FindImplementationForInterfaceMember(i2i1m1)); 34644Assert.Same(i2m2, i2.FindImplementationForInterfaceMember(i2i1m2)); 34646Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 34647Assert.Null(i3.FindImplementationForInterfaceMember(i1m2)); 34648Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m1)); 34649Assert.Null(i3.FindImplementationForInterfaceMember(i2i1m2)); 34650Assert.Same(i3i1m1, i3.FindImplementationForInterfaceMember(i3i1m1)); 34651Assert.Same(i3i1m2, i3.FindImplementationForInterfaceMember(i3i1m2)); 34675Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m1)); 34676Assert.Null(test1i1.FindImplementationForInterfaceMember(i1m2)); 34677Assert.Equal(test1i1m1, test1i1.FindImplementationForInterfaceMember(test1i1m1)); 34678Assert.Equal(test1i1m2, test1i1.FindImplementationForInterfaceMember(test1i1m2)); 34679Assert.Equal(test2i1m1, test2i1.FindImplementationForInterfaceMember(test2i1m1)); 34680Assert.Equal(test2i1m2, test2i1.FindImplementationForInterfaceMember(test2i1m2)); 34681Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m1)); 34682Assert.Null(test2i2.FindImplementationForInterfaceMember(i1m2)); 34683Assert.Equal(test2i2m1, test2i2.FindImplementationForInterfaceMember(test2i1m1)); 34684Assert.Equal(test2i2m2, test2i2.FindImplementationForInterfaceMember(test2i1m2)); 34689Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 34690Assert.Null(test1.FindImplementationForInterfaceMember(i1m2)); 34691Assert.Equal(test1i1m1, test1.FindImplementationForInterfaceMember(test1i1m1)); 34692Assert.Equal(test1i1m2, test1.FindImplementationForInterfaceMember(test1i1m2)); 34693Assert.Null(test2.FindImplementationForInterfaceMember(i1m1)); 34694Assert.Null(test2.FindImplementationForInterfaceMember(i1m2)); 34695Assert.Equal(test2i2m1, test2.FindImplementationForInterfaceMember(test2i1m1)); 34696Assert.Equal(test2i2m2, test2.FindImplementationForInterfaceMember(test2i1m2)); 34809Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 34810Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 34833Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 34834Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 34903Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 34904Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 34905Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 34931Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 34932Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 34933Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35001Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35002Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35003Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35026Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35027Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35028Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[4].GetMember("M1"))); 35097Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35098Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35121Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1"))); 35122Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35202Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 35203Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 35293Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35294Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35402Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 35403Assert.Equal("void I3.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1")).ToTestDisplayString()); 35515Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35516Assert.Equal("void I2<System.String?>.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35628Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 35629Assert.Equal("void I2<System.String>.I1<System.String>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[5].GetMember("M1")).ToTestDisplayString()); 35734Assert.Equal("void I2.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[1].GetMember("M1")).ToTestDisplayString()); 36051Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1")).ToTestDisplayString()); 36052Assert.Equal("void I4.I1<System.String?>.M1()", test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[6].GetMember("M1")).ToTestDisplayString()); 36898Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 36906Assert.Same(interfaceAccessor.DeclaredAccessibility == Accessibility.Private ? null : accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 36917Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceProperty)); 36925Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 39346Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[2].GetMember("M1"))); 39347Assert.Null(test1.FindImplementationForInterfaceMember(test1.AllInterfacesNoUseSiteDiagnostics[3].GetMember("M1"))); 39931Assert.Same(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 39939Assert.Same(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 39950Assert.Equal(expected, implementingType.FindImplementationForInterfaceMember(interfaceEvent)); 39958Assert.Equal(accessor, implementingType.FindImplementationForInterfaceMember(interfaceAccessor)); 50920Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 50921Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51073Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51074Assert.Equal("void Test1.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51211Assert.Null(i3.FindImplementationForInterfaceMember(i1m1)); 51212Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51352Assert.Equal("void I3.I1.M1()", i3.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51353Assert.Equal("void I3.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51493Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51635Assert.Null(i4.FindImplementationForInterfaceMember(i1m1)); 51636Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51745Assert.Equal("void I4.I1.M1()", i4.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51746Assert.Equal("void I4.I1.M1()", test1.FindImplementationForInterfaceMember(i1m1).ToTestDisplayString()); 51800Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51801Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51865Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51866Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51923Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51924Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 51988Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 51989Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52043Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 52044Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 52097Assert.Same(c2m1, c2.FindImplementationForInterfaceMember(i1m1)); 52343Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52344Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52349Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52350Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52360Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52361Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52542Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 52543Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 52547Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52548Assert.Same(test12p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52553Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52554Assert.Same(test12p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52697Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 52698Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 52702Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52703Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52708Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52709Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52869Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 52870Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 52874Assert.Same(i3p1.GetMethod, i3.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52875Assert.Same(i3p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 52880Assert.Same(i3p1.SetMethod, i3.FindImplementationForInterfaceMember(i1p1.SetMethod)); 52881Assert.Same(i3p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53034Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53037Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53041Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53198Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 53199Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53202Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53203Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53207Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53208Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53338Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 53339Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 53343Assert.Same(i4p1.GetMethod, i4.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53344Assert.Same(i4p1.GetMethod, test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53349Assert.Same(i4p1.SetMethod, i4.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53350Assert.Same(i4p1.SetMethod, test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53425Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53426Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53435Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53436Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53450Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53451Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53598Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 53599Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 53604Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53605Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53615Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53616Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 53719Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 53723Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 53733Assert.Same(c2p1Set, c2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54033Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 54034Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 54039Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54040Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.GetMethod)); 54050Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54051Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.SetMethod)); 54202Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54203Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54204Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54275Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54276Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54277Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54375Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54376Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54377Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54446Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54447Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54448Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.GetMethod).ToTestDisplayString()); 54514Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54515Assert.Equal("void I2.I1.set_F1(System.Char value)", test2.FindImplementationForInterfaceMember(i1F1.SetMethod).ToTestDisplayString()); 54516Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54608Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54609Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54610Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54702Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54703Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54704Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 54790Assert.Null(test2.FindImplementationForInterfaceMember(i1F1)); 54791Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.SetMethod)); 54792Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.GetMethod)); 57321Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57322Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57325Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57326Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57329Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57330Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57500Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 57501Assert.Same(test12p1, test1.FindImplementationForInterfaceMember(i1p1)); 57503Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57504Assert.Same(test12p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57506Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57507Assert.Same(test12p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57648Assert.Null(i3.FindImplementationForInterfaceMember(i1p1)); 57649Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57651Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57652Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57654Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57655Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57808Assert.Same(i3p1, i3.FindImplementationForInterfaceMember(i1p1)); 57809Assert.Same(i3p1, test1.FindImplementationForInterfaceMember(i1p1)); 57811Assert.Same(i3p1.AddMethod, i3.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57812Assert.Same(i3p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57814Assert.Same(i3p1.RemoveMethod, i3.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57815Assert.Same(i3p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 57959Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 57960Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 57961Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58110Assert.Null(i4.FindImplementationForInterfaceMember(i1p1)); 58111Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58113Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58114Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58116Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58117Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58240Assert.Same(i4p1, i4.FindImplementationForInterfaceMember(i1p1)); 58241Assert.Same(i4p1, test1.FindImplementationForInterfaceMember(i1p1)); 58243Assert.Same(i4p1.AddMethod, i4.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58244Assert.Same(i4p1.AddMethod, test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58246Assert.Same(i4p1.RemoveMethod, i4.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58247Assert.Same(i4p1.RemoveMethod, test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58313Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 58314Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 58323Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58324Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58338Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58339Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58505Assert.Same(c2p1, c2.FindImplementationForInterfaceMember(i1p1)); 58515Assert.Same(c2p1Add, c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58519Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 58530Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 58534Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59085Assert.Null(i2.FindImplementationForInterfaceMember(i1p1)); 59086Assert.Null(test1.FindImplementationForInterfaceMember(i1p1)); 59089Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59090Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.AddMethod)); 59093Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 59094Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.RemoveMethod)); 62197Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62290Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62334Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62335Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62349Assert.Equal("System.String C0.M()", c0.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62350Assert.Equal("System.String C0.M()", test.FindImplementationForInterfaceMember(i1M).ToTestDisplayString()); 62544Assert.Same(i1Normal, i1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62545Assert.Same(i1Normal.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62546Assert.Same(i1Normal.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62547Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62548Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62549Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62551Assert.Same(i1Normal, c1.FindImplementationForInterfaceMember(baseInterfaceNormal)); 62552Assert.Same(i1Normal.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.AddMethod)); 62553Assert.Same(i1Normal.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.RemoveMethod)); 62554Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62555Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62556Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62606Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(i1WinRT)); 62607Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(i1WinRT.AddMethod)); 62608Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod)); 62666Assert.Same(i1WinRT, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62667Assert.Same(i1WinRT.AddMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62668Assert.Same(i1WinRT.RemoveMethod, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62670Assert.Same(i1WinRT, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT)); 62671Assert.Same(i1WinRT.AddMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.AddMethod)); 62672Assert.Same(i1WinRT.RemoveMethod, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.RemoveMethod)); 62968Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 62969Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 62970Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 62971Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 62973Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 62974Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 62975Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 62976Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 62977Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 62978Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 62979Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 62980Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 62981Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 62982Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 62984Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.GetMethod)); 62985Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 62986Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 62987Assert.Same(c1i1P3set, test1.FindImplementationForInterfaceMember(i1P3.SetMethod)); 62988Assert.Same(c1i1E1add, test1.FindImplementationForInterfaceMember(i1E1.AddMethod)); 62989Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 62990Assert.Null(test1.FindImplementationForInterfaceMember(i1P1)); 62991Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 62992Assert.Null(test1.FindImplementationForInterfaceMember(i1P3)); 62993Assert.Null(test1.FindImplementationForInterfaceMember(i1E1)); 62995Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.GetMethod)); 62996Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 62997Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 62998Assert.Same(c1i1P3set, test4.FindImplementationForInterfaceMember(i1P3.SetMethod)); 62999Assert.Same(c1i1E1add, test4.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63000Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63001Assert.Null(test4.FindImplementationForInterfaceMember(i1P1)); 63002Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63003Assert.Null(test4.FindImplementationForInterfaceMember(i1P3)); 63004Assert.Null(test4.FindImplementationForInterfaceMember(i1E1)); 63006Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63007Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63008Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63009Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63010Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63011Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63012Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 63013Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63014Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 63015Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 63165Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63167Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63168Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63169Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63171Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63172Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63173Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63175Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63176Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63177Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63179Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63180Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63181Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63331Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63333Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63334Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63335Assert.Same(c1i1P2, test1.FindImplementationForInterfaceMember(i1P2)); 63337Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63338Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63339Assert.Same(c1i1P2, test4.FindImplementationForInterfaceMember(i1P2)); 63341Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63342Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63343Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63345Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63346Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63347Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63505Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63507Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63508Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63509Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63511Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63512Assert.Same(c1i1P2set, test1.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63513Assert.Null(test1.FindImplementationForInterfaceMember(i1P2)); 63515Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63516Assert.Same(c1i1P2set, test4.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63517Assert.Null(test4.FindImplementationForInterfaceMember(i1P2)); 63519Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63520Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63521Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63677Assert.Null(c3.FindImplementationForInterfaceMember(i1.GetMember<PropertySymbol>("P2"))); 63898Assert.Null(i3.FindImplementationForInterfaceMember(i1P1)); 63899Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 63900Assert.Null(i3.FindImplementationForInterfaceMember(i1P3)); 63901Assert.Null(i3.FindImplementationForInterfaceMember(i1E1)); 63903Assert.Null(i2.FindImplementationForInterfaceMember(i1P1)); 63904Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 63905Assert.Null(i2.FindImplementationForInterfaceMember(i1P3)); 63906Assert.Null(i2.FindImplementationForInterfaceMember(i1E1)); 63908Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63909Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63910Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63911Assert.Same(i2i1P3set, test2.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63912Assert.Same(i2i1E1add, test2.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63913Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63914Assert.Null(test2.FindImplementationForInterfaceMember(i1P1)); 63915Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 63916Assert.Null(test2.FindImplementationForInterfaceMember(i1P3)); 63917Assert.Null(test2.FindImplementationForInterfaceMember(i1E1)); 63919Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.GetMethod)); 63920Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 63921Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 63922Assert.Same(i2i1P3set, test3.FindImplementationForInterfaceMember(i1P3.SetMethod)); 63923Assert.Same(i2i1E1add, test3.FindImplementationForInterfaceMember(i1E1.AddMethod)); 63924Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.RemoveMethod)); 63925Assert.Null(test3.FindImplementationForInterfaceMember(i1P1)); 63926Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 63927Assert.Null(test3.FindImplementationForInterfaceMember(i1P3)); 63928Assert.Null(test3.FindImplementationForInterfaceMember(i1E1)); 64035Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64036Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64038Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64039Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64040Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64042Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64043Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64044Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64151Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64152Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64154Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64155Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64156Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64158Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64159Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64160Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64271Assert.Null(i3.FindImplementationForInterfaceMember(i1P2)); 64272Assert.Null(i2.FindImplementationForInterfaceMember(i1P2)); 64274Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64275Assert.Same(i2i1P2set, test2.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64276Assert.Null(test2.FindImplementationForInterfaceMember(i1P2)); 64278Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.GetMethod)); 64279Assert.Same(i2i1P2set, test3.FindImplementationForInterfaceMember(i1P2.SetMethod)); 64280Assert.Null(test3.FindImplementationForInterfaceMember(i1P2)); 64352Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64353Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64432Assert.Null(c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64433Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64507Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64508Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 64586Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.GetMethod)); 64587Assert.Null(c2.FindImplementationForInterfaceMember(p1)); 68701Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68702Assert.Null(test1.FindImplementationForInterfaceMember(i1m1)); 68786Assert.Null(i2.FindImplementationForInterfaceMember(i1m1)); 68787Assert.Null(test1.FindImplementationForInterfaceMember(i1m1));
Symbols\GenericConstraintTests.cs (1)
3356var 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)
335Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface1Indexer)); 336Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface2Indexer)); 417Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface1Indexer)); 418Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interface2Indexer)); 484Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexers[0])); 485Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexers[1])); 550var indexer0Impl = @class.FindImplementationForInterfaceMember(interfaceIndexers[0]); 551var 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)
1169Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexer));
Symbols\Metadata\PE\LoadingProperties.cs (5)
282Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty1)); 283Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty4)); 284Assert.Same(classProperty1, @class.FindImplementationForInterfaceMember(interfaceProperty5)); 286Assert.Null(@class.FindImplementationForInterfaceMember(interfaceProperty2)); 287Assert.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)
1849var implementationProperty = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceProperty); 1850var implementationIndexer = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceIndexer); 1951var implementationProperty = (PropertySymbol)implementationType.FindImplementationForInterfaceMember(interfaceProperty); 1952var 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 (589)
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)); 999Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1029Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1071Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1086Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1164Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1201Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1238Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1285Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1300Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1336Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1351Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1391Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1406Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1449Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1464Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1504Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 1519Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1562Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1577Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1742Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1752Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 1762Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 1772Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 1782Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 1792Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 1802Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 1812Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 1822Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 1832Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 1845Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 1857Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 1869Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 1881Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 1893Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 1905Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 1917Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 1929Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 1941Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 1953Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 2548Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 2558Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 2568Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 2578Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 2588Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 2598Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 2608Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 2618Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 2628Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 2638Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 2653Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 2665Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 2677Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 2689Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 2701Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 2713Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 2725Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 2737Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 2749Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 2761Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 3381Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 3393Assert.Same(m02, i1.FindImplementationForInterfaceMember(m02)); 3405Assert.Null(i1.FindImplementationForInterfaceMember(m03)); 3417Assert.Null(i1.FindImplementationForInterfaceMember(m04)); 3429Assert.Null(i1.FindImplementationForInterfaceMember(m05)); 3441Assert.Null(i1.FindImplementationForInterfaceMember(m06)); 3453Assert.Null(i1.FindImplementationForInterfaceMember(m07)); 3465Assert.Same(m08, i1.FindImplementationForInterfaceMember(m08)); 3477Assert.Same(m09, i1.FindImplementationForInterfaceMember(m09)); 3489Assert.Null(i1.FindImplementationForInterfaceMember(m10)); 4148Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4161Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4174Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4394Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4407Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4420Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4580Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4593Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4606Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4820Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4833Assert.Same(m01, m01.ContainingType.FindImplementationForInterfaceMember(m01)); 4846Assert.Null(m01.ContainingType.FindImplementationForInterfaceMember(m01)); 15811Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15812Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15813Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15814Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15817Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15819Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15820Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 15891Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15892Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15893Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15894Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15897Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 15899Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15902Assert.Same(i8.GetMembers().OfType<MethodSymbol>().Single(), i8.FindImplementationForInterfaceMember(m01)); 16099var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16161var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 16232var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16326var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16332Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 16335Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16338Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 16342Assert.Equal("void C2.M01()", c5.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16388Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 16389Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 16418Assert.Equal("void C1.I1.M01()", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 16467Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 16468Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 16507var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16592var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 16629var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16728var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16734Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 16741Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 16821var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 16827Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 16895var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16898var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 16977var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 16980var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17059var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17062Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17130var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17133Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 17204var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17208var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17291var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17295var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17389var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17394var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 17491var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 17496var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 18200Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18201Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18202Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18203Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18206Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18208Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18211Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18214Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18217Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18220Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18223Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18225Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18353Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18354Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18355Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18356Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18359Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18361Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18367Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18374Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18378Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 18539Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18540Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18541Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18542Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18545Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18547Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18550Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18553Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18556Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18559Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18562Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 18564Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18731Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18732Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18733Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18734Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18737Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(m01)); 18739Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18745Assert.Same(iXM, iX.FindImplementationForInterfaceMember(iXM)); 18752Assert.Same(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 18756Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(m01)); 19334var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19415var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19507var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19605var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19688var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19780var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19869var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 19960var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20034var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20117var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20197var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 20306var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20313Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20316Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20319Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20323var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 20441var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20448Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 20451Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 20454Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 20458var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 20518Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 20519Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 20549Assert.Equal("I1 C1.I1." + opName + "(I1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 20598Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 20599Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 20629Assert.Equal("I1 C1.I1." + opName + "(I1 x, System.Int32 y)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 20690Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 20691Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 20755Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 20756Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 20824var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 20940var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 20977var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21051var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21088var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21186var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 21222var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21328Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21389Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 21393Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21503var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 21509Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 21516Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 21630var c3M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 21636Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 21733var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21736var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 21842var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21846Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 21944var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 21948var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 22641Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 22642Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 22643Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 22644Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 22645Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 22646Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 22652Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 22653Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 22654Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 22730Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 22731Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 22732Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 22733Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 22734Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 22743Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 22744Assert.Same(i6m.GetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).GetMethod); 22745Assert.Same(i6m.SetMethod, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).SetMethod); 22964var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 22973Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 22988Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23060var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23069Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23150var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23159Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23174Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23251var cM01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 23255Assert.Same(cM01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23256Assert.Same(cM01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23407var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 23411Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23412Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23418Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 23419Assert.Same(c1M01.GetMethod, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 23420Assert.Same(c1M01.SetMethod, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 23423Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 23424Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 23425Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 23428Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 23429Assert.Same(c1M01.GetMethod, c4.FindImplementationForInterfaceMember(m01.GetMethod)); 23430Assert.Same(c1M01.SetMethod, c4.FindImplementationForInterfaceMember(m01.SetMethod)); 23434var c2M01 = (PropertySymbol)c5.FindImplementationForInterfaceMember(m01); 23436Assert.Same(c2M01.GetMethod, c5.FindImplementationForInterfaceMember(m01.GetMethod)); 23437Assert.Same(c2M01.SetMethod, c5.FindImplementationForInterfaceMember(m01.SetMethod)); 23509Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 23510Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 23511Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23512Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23513Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23514Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 23552Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 23553Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 23554Assert.Same(c1m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23555Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23556Assert.Same(c1m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23557Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 23590Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 23591Assert.Same(c1m01.GetMethod, c.FindImplementationForInterfaceMember(m01.GetMethod)); 23592Assert.Same(c1m01.SetMethod, c.FindImplementationForInterfaceMember(m01.SetMethod)); 23643Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 23644Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 23645Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23646Assert.Null(i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23647Assert.Same(m01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23648Assert.Same(m01.SetMethod, i1.FindImplementationForInterfaceMember(m01.SetMethod)); 23683var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23692Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23705Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 23741var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23750Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23775Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 23814Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 23815Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23816Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23845var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 23854Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 23867Assert.Same(m01Set, c.FindImplementationForInterfaceMember(m01Set)); 23907Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 23908Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23909Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23940Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 23941Assert.Null(c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23942Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 23995Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 23996Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 23997Assert.Same(m01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 23998Assert.Same(m01.GetMethod, i1.FindImplementationForInterfaceMember(m01.GetMethod)); 23999Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24000Assert.Null(i1.FindImplementationForInterfaceMember(m01.SetMethod)); 24035var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24044Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24057Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24093var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24102Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24127Assert.Same(cM01Get, c.FindImplementationForInterfaceMember(m01Get)); 24166Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24167Assert.Same(c1M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24168Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24197var cM01 = (PropertySymbol)c.FindImplementationForInterfaceMember(m01); 24206Assert.Same(cM01Set, c.FindImplementationForInterfaceMember(m01Set)); 24219Assert.Same(m01Get, c.FindImplementationForInterfaceMember(m01Get)); 24259Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24260Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24261Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24292Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 24293Assert.Same(c1M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24294Assert.Null(c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24374Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 24375Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 24376Assert.Same(i2M01.GetMethod, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24377Assert.Same(i2M01.GetMethod, i2.FindImplementationForInterfaceMember(m01.GetMethod)); 24378Assert.Same(i2M01.SetMethod, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24379Assert.Same(i2M01.SetMethod, i2.FindImplementationForInterfaceMember(m01.SetMethod)); 24421var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 24422var c2M01Get = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.GetMethod); 24423var c2M01Set = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.SetMethod); 24610var c1M01 = (PropertySymbol)c1.FindImplementationForInterfaceMember(m01); 24628Assert.Same(c1M01Get, c1.FindImplementationForInterfaceMember(m01.GetMethod)); 24644c1M01Set = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.SetMethod); 24659Assert.Same(c1M01Set, c1.FindImplementationForInterfaceMember(m01.SetMethod)); 24664var c2M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 24684Assert.Same(c2M01Get, c2.FindImplementationForInterfaceMember(m01.GetMethod)); 24696Assert.Same(c2M01Set, c2.FindImplementationForInterfaceMember(m01.SetMethod)); 24704var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 24724Assert.Same(c3M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 24736Assert.Same(c3M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 24844var c2M01Get = c3.FindImplementationForInterfaceMember(m01.GetMethod); 24847var c2M01Set = c3.FindImplementationForInterfaceMember(m01.SetMethod); 24851Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 24855Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 24856Assert.Same(c1M01.GetMethod, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 24857Assert.Same(c1M01.SetMethod, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 24864Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 24865Assert.Same(c2M02.GetMethod, c3.FindImplementationForInterfaceMember(m02.GetMethod)); 24866Assert.Same(c2M02.SetMethod, c3.FindImplementationForInterfaceMember(m02.SetMethod)); 24971var c3M01 = (PropertySymbol)c3.FindImplementationForInterfaceMember(m01); 24975var c3M01Get = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.GetMethod); 24979var c3M01Set = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.SetMethod); 24985Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 24986Assert.Same(c2M01Get, c3.FindImplementationForInterfaceMember(m01.GetMethod)); 24987Assert.Same(c2M01Set, c3.FindImplementationForInterfaceMember(m01.SetMethod)); 25055var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25058Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25126var c1M01 = (PropertySymbol)c2.FindImplementationForInterfaceMember(m01); 25129Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 25420Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25421Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25422Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25423Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25425Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25426Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 25432Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 25433Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 25434Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 25508Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25509Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25510Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25511Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25512Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25521Assert.Same(i6m, i6.FindImplementationForInterfaceMember(m)); 25522Assert.Same(i6m.AddMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).AddMethod); 25523Assert.Same(i6m.RemoveMethod, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).RemoveMethod); 25742var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 25751Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 25766Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 25837var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 25846Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 25861Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 25938var cM01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 25942Assert.Same(cM01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 25943Assert.Same(cM01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26099var c1M01 = (EventSymbol)c1.FindImplementationForInterfaceMember(m01); 26103Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26104Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26110Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 26111Assert.Same(c1M01.AddMethod, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 26112Assert.Same(c1M01.RemoveMethod, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26115Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 26116Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 26117Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26120Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 26121Assert.Same(c1M01.AddMethod, c4.FindImplementationForInterfaceMember(m01.AddMethod)); 26122Assert.Same(c1M01.RemoveMethod, c4.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26126var c2M01 = (EventSymbol)c5.FindImplementationForInterfaceMember(m01); 26128Assert.Same(c2M01.AddMethod, c5.FindImplementationForInterfaceMember(m01.AddMethod)); 26129Assert.Same(c2M01.RemoveMethod, c5.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26202Assert.Same(m01, c1.FindImplementationForInterfaceMember(m01)); 26203Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26204Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26205Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26206Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26207Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26241Assert.Same(c1m01, c1.FindImplementationForInterfaceMember(m01)); 26242Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 26243Assert.Same(c1m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26244Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26245Assert.Same(c1m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26246Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26270Assert.Same(c1m01, c.FindImplementationForInterfaceMember(m01)); 26271Assert.Same(c1m01.AddMethod, c.FindImplementationForInterfaceMember(m01.AddMethod)); 26272Assert.Same(c1m01.RemoveMethod, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26325Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 26326Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 26327Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26328Assert.Null(i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26329Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26330Assert.Same(m01.RemoveMethod, i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26355Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26356Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26357Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26385var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26394Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01Add)); 26418Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26453Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26454Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26455Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26483Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26484Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26485Assert.Same(m01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26513Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26514Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26515Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26543Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26544Assert.Null(c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26545Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26599Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 26600Assert.Null(i1.FindImplementationForInterfaceMember(m01)); 26601Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26602Assert.Null(i1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26603Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26604Assert.Same(m01.AddMethod, i1.FindImplementationForInterfaceMember(m01.AddMethod)); 26629Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26630Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26631Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26659var cM01 = (EventSymbol)c.FindImplementationForInterfaceMember(m01); 26668Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01Remove)); 26692Assert.Same(cM01Add, c.FindImplementationForInterfaceMember(m01.AddMethod)); 26727Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26728Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26729Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26757Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26758Assert.Same(c1M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26759Assert.Same(m01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26787Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26788Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26789Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26817Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 26818Assert.Same(c1M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26819Assert.Null(c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26902Assert.Same(i2M01, c1.FindImplementationForInterfaceMember(m01)); 26903Assert.Same(i2M01, i2.FindImplementationForInterfaceMember(m01)); 26904Assert.Same(i2M01.AddMethod, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 26905Assert.Same(i2M01.AddMethod, i2.FindImplementationForInterfaceMember(m01.AddMethod)); 26906Assert.Same(i2M01.RemoveMethod, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26907Assert.Same(i2M01.RemoveMethod, i2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 26949var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 26950var c2M01Add = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.AddMethod); 26951var c2M01Remove = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.RemoveMethod); 27184c1M01Add = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.AddMethod); 27196c1M01Remove = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.RemoveMethod); 27209Assert.Null(c1.FindImplementationForInterfaceMember(m01)); 27213Assert.Same(c1M01, c1.FindImplementationForInterfaceMember(m01)); 27214Assert.Same(c1M01Add, c1.FindImplementationForInterfaceMember(m01.AddMethod)); 27215Assert.Same(c1M01Remove, c1.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27220var c2M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27241Assert.Same(c2M01Add, c2.FindImplementationForInterfaceMember(m01.AddMethod)); 27253Assert.Same(c2M01Remove, c2.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27295c3M02Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.AddMethod); 27307c3M02Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.RemoveMethod); 27320Assert.Null(c3.FindImplementationForInterfaceMember(m02)); 27324Assert.Same(c3M02, c3.FindImplementationForInterfaceMember(m02)); 27325Assert.Same(c3M02Add, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 27326Assert.Same(c3M02Remove, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27331var c4M02 = (EventSymbol)c4.FindImplementationForInterfaceMember(m02); 27355Assert.Same(c4M02Add, c4.FindImplementationForInterfaceMember(m02.AddMethod)); 27368Assert.Same(c4M02Remove, c4.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27509var c2M01Add = c3.FindImplementationForInterfaceMember(m01.AddMethod); 27512var c2M01Remove = c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 27516Assert.Null(c3.FindImplementationForInterfaceMember(m01)); 27520Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 27521Assert.Same(c1M01.AddMethod, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 27522Assert.Same(c1M01.RemoveMethod, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27529Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 27530Assert.Same(c2M02.AddMethod, c3.FindImplementationForInterfaceMember(m02.AddMethod)); 27531Assert.Same(c2M02.RemoveMethod, c3.FindImplementationForInterfaceMember(m02.RemoveMethod)); 27637var c3M01 = (EventSymbol)c3.FindImplementationForInterfaceMember(m01); 27641var c3M01Add = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.AddMethod); 27645var c3M01Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.RemoveMethod); 27651Assert.Same(c2M01, c3.FindImplementationForInterfaceMember(m01)); 27652Assert.Same(c2M01Add, c3.FindImplementationForInterfaceMember(m01.AddMethod)); 27653Assert.Same(c2M01Remove, c3.FindImplementationForInterfaceMember(m01.RemoveMethod)); 27721var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27724Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 27792var c1M01 = (EventSymbol)c2.FindImplementationForInterfaceMember(m01); 27795Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 28208Assert.Null(i2.FindImplementationForInterfaceMember(i2.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28211Assert.Null(i3.FindImplementationForInterfaceMember(i3.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28214Assert.Null(i4.FindImplementationForInterfaceMember(i4.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28217Assert.Null(i5.FindImplementationForInterfaceMember(i5.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28220Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28223Assert.Null(i7.FindImplementationForInterfaceMember(i7.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28226Assert.Null(i8.FindImplementationForInterfaceMember(i8.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28229Assert.Null(i9.FindImplementationForInterfaceMember(i9.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28232Assert.Null(i10.FindImplementationForInterfaceMember(i10.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28235Assert.Same(i12.GetMembers().OfType<MethodSymbol>().Single(), i12.FindImplementationForInterfaceMember(i12.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28238Assert.Null(i13.FindImplementationForInterfaceMember(i13.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28241Assert.Null(i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28372Assert.Equal(m01, i2.FindImplementationForInterfaceMember(m01)); 28376Assert.Equal(m01, i3.FindImplementationForInterfaceMember(m01)); 28380Assert.Equal(m01, i4.FindImplementationForInterfaceMember(m01)); 28384Assert.Equal(m01, i5.FindImplementationForInterfaceMember(m01)); 28387Assert.Same(i6.GetMembers().OfType<MethodSymbol>().Single(), i6.FindImplementationForInterfaceMember(i6.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28391Assert.Equal(m01, i7.FindImplementationForInterfaceMember(m01)); 28397Assert.Equal(iXM, iX.FindImplementationForInterfaceMember(iXM)); 28404Assert.Equal(iX.GetMembers().OfType<MethodSymbol>().Single(), iX.FindImplementationForInterfaceMember(iXM)); 28408Assert.Same(i14.GetMembers().OfType<MethodSymbol>().Single(), i14.FindImplementationForInterfaceMember(i14.Interfaces().Single().GetMembers().OfType<MethodSymbol>().Single())); 28691var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 28716var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 28817var cM01 = (MethodSymbol)c.FindImplementationForInterfaceMember(m01); 28833var cM02 = (MethodSymbol)c.FindImplementationForInterfaceMember(m02); 28924var cM01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 29045var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29052Assert.Same(c1M01, c2.FindImplementationForInterfaceMember(m01)); 29055Assert.Same(c1M01, c3.FindImplementationForInterfaceMember(m01)); 29058Assert.Same(c1M01, c4.FindImplementationForInterfaceMember(m01)); 29062var c2M01 = (MethodSymbol)c5.FindImplementationForInterfaceMember(m01); 29123Assert.Equal(m01, c1.FindImplementationForInterfaceMember(m01)); 29124Assert.Same(m01, i1.FindImplementationForInterfaceMember(m01)); 29154Assert.Equal("System.Int32 C1.I1<C1>." + opName + "(C1 x)", c1.FindImplementationForInterfaceMember(m01).ToTestDisplayString()); 29219Assert.Equal(i2M01, c1.FindImplementationForInterfaceMember(m01)); 29220Assert.Equal(i2M01, i2.FindImplementationForInterfaceMember(m01)); 29283var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29398var c1M01 = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01); 29435var c2M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29564var c2M01 = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01); 29570Assert.Equal(c1M01, c3.FindImplementationForInterfaceMember(m01)); 29577Assert.Same(c2M02, c3.FindImplementationForInterfaceMember(m02)); 29668var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29671var baseI1M01 = c2.BaseType().FindImplementationForInterfaceMember(m01); 29774var c1M01 = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01); 29778Assert.Same(c1M01, c2.BaseType().FindImplementationForInterfaceMember(m01)); 31655var bM1 = b.FindImplementationForInterfaceMember(biMethods[0]); 31659var bM2 = b.FindImplementationForInterfaceMember(biMethods[1]); 31662Assert.Same(bM2, b.FindImplementationForInterfaceMember(biMethods[2])); 31690var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 31694var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 31697Assert.Same(bM2, d.FindImplementationForInterfaceMember(diMethods[2]).OriginalDefinition); 31753var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 31757var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 31760Assert.Same(dM2, d.FindImplementationForInterfaceMember(diMethods[2])); 31824var dM1 = d.FindImplementationForInterfaceMember(diMethods[0]); 31828var dM2 = d.FindImplementationForInterfaceMember(diMethods[1]); 31831Assert.Equal(dM2, d.FindImplementationForInterfaceMember(diMethods[2]));
Symbols\TypeTests.cs (1)
1388MethodSymbol getGoo = (MethodSymbol)bar.FindImplementationForInterfaceMember(iGooGetGoo);