From 9dc67b830abbc8eb7ca25c8cf5a4b242cc9eac43 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Mon, 14 Feb 2011 14:27:46 +0100 Subject: [PATCH] Fix CecilLoaderTests for Dictionary<,>.ValueCollection::Count (it's a non-virtual property implementing an interface; and isn't considered sealed in C#). --- ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs b/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs index b380c1cd8f..408e2b855e 100644 --- a/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs +++ b/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs @@ -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); }