Browse Source

Added check for links in the context action tests.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
b41059f454
  1. 10
      ICSharpCode.NRefactory.Tests/CSharp/ContextAction/TestRefactoringContext.cs

10
ICSharpCode.NRefactory.Tests/CSharp/ContextAction/TestRefactoringContext.cs

@ -70,8 +70,16 @@ namespace ICSharpCode.NRefactory.CSharp.ContextActions @@ -70,8 +70,16 @@ namespace ICSharpCode.NRefactory.CSharp.ContextActions
{
this.eolMarker = context.EolMarker;
}
public override void Link (params AstNode[] nodes)
{
// check that all links are valid.
foreach (var node in nodes) {
Assert.IsNotNull (GetSegment (node));
}
}
}
#region Text stuff
public override string EolMarker { get { return Environment.NewLine; } }

Loading…
Cancel
Save