Browse Source

fix unit tests

pull/25/merge
Siegfried Pammer 13 years ago
parent
commit
c628748359
  1. 2
      src/AddIns/BackendBindings/CSharpBinding/Tests/MockTextEditor.cs
  2. 2
      src/AddIns/BackendBindings/VBNetBinding/Test/MockTextEditor.cs
  3. 2
      src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs
  4. 2
      src/AddIns/Misc/SharpRefactoring/Test/MockTextEditor.cs

2
src/AddIns/BackendBindings/CSharpBinding/Tests/MockTextEditor.cs

@ -31,7 +31,7 @@ namespace CSharpBinding.Tests @@ -31,7 +31,7 @@ namespace CSharpBinding.Tests
pc = new DefaultProjectContent();
pc.ReferencedContents.Add(AssemblyParserService.DefaultProjectContentRegistry.Mscorlib);
this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
// this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
this.TextEditor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#");
}

2
src/AddIns/BackendBindings/VBNetBinding/Test/MockTextEditor.cs

@ -49,7 +49,7 @@ namespace ICSharpCode.VBNetBinding.Tests @@ -49,7 +49,7 @@ namespace ICSharpCode.VBNetBinding.Tests
}
}
this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
// this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
this.TextEditor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("VBNet");
new VBNetLanguageBinding().Attach(this);

2
src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs

@ -51,7 +51,7 @@ namespace ICSharpCode.XamlBinding.Tests @@ -51,7 +51,7 @@ namespace ICSharpCode.XamlBinding.Tests
}
}
this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
// this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
this.TextEditor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
new XamlLanguageBinding().Attach(this);

2
src/AddIns/Misc/SharpRefactoring/Test/MockTextEditor.cs

@ -32,7 +32,7 @@ namespace SharpRefactoring.Tests @@ -32,7 +32,7 @@ namespace SharpRefactoring.Tests
pc = new DefaultProjectContent();
pc.ReferencedContents.Add(AssemblyParserService.DefaultProjectContentRegistry.Mscorlib);
this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
// this.TextEditor.TextArea.TextView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(this.TextEditor));
this.TextEditor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#");
}

Loading…
Cancel
Save