Browse Source

Test demonstrating issue with EntityType for indexers that explicitly implement interface members.

newNRvisualizers
Erik Källén 13 years ago committed by Daniel Grunwald
parent
commit
acb1218d5f
  1. 1
      ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.cs

1
ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.cs

@ -995,6 +995,7 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -995,6 +995,7 @@ namespace ICSharpCode.NRefactory.TypeSystem
public void ExplicitIndexerImplementationReturnsTheCorrectMembers() {
ITypeDefinition type = GetTypeDefinition(typeof(ClassThatImplementsIndexersExplicitly));
Assert.That(type.Properties.All(p => p.EntityType == EntityType.Indexer));
Assert.That(type.Properties.All(p => p.ImplementedInterfaceMembers.Count == 1));
Assert.That(type.Properties.All(p => p.Getter.ImplementedInterfaceMembers.Count == 1));
Assert.That(type.Properties.All(p => p.Setter.ImplementedInterfaceMembers.Count == 1));

Loading…
Cancel
Save