From fca6a67c0ee63845322a08928a0f3e39dcc7a0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Wed, 22 May 2013 08:35:31 +0200 Subject: [PATCH] Fixed failing test. --- ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);