diff --git a/ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs index 5e4a7bc48c..f22c9ac470 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs @@ -53,7 +53,7 @@ namespace ICSharpCode.NRefactory.CSharp foreach (Type type in typeof(AstNode).Assembly.GetExportedTypes()) { if (type == typeof(CSharpModifierToken)) // CSharpModifierToken is the exception (though I'm not too happy about that) continue; - if (type == typeof(PreProcessorDirective)) // another exception - is it useful or not ? + if (typeof(PreProcessorDirective).IsAssignableFrom (type)) // another exception - is it useful or not ? continue; if (type.IsSubclassOf(typeof(AstNode))) { Assert.IsTrue(type.BaseType.IsAbstract, type.FullName);