Browse Source

Fix CecilLoaderTests for Dictionary<,>.ValueCollection::Count (it's a non-virtual property implementing an interface; and isn't considered sealed in C#).

newNRvisualizers
Daniel Grunwald 15 years ago
parent
commit
9dc67b830a
  1. 3
      ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs

3
ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs

@ -153,7 +153,8 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -153,7 +153,8 @@ namespace ICSharpCode.NRefactory.TypeSystem
IProperty count = valueCollection.Properties.Single(p => p.Name == "Count");
Assert.AreEqual(Accessibility.Public, count.Accessibility);
Assert.IsTrue(count.IsSealed);
// It's sealed on the IL level; but in C# it's just a normal non-virtual method that happens to implement an interface
Assert.IsFalse(count.IsSealed);
Assert.IsFalse(count.IsVirtual);
Assert.IsFalse(count.IsAbstract);
}

Loading…
Cancel
Save