Browse Source

Fixed failing test.

pull/45/merge
Mike Krüger 12 years ago
parent
commit
fca6a67c0e
  1. 2
      ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs

2
ICSharpCode.NRefactory.Tests/CSharp/AstStructureTests.cs

@ -53,7 +53,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -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);

Loading…
Cancel
Save