1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.AvalonEdit;
6
using ICSharpCode.SharpDevelop;
7
using ICSharpCode.SharpDevelop.Editor;
8
using ICSharpCode.SharpDevelop.Gui;
10
namespace ICSharpCode.Scripting.Tests.Utils
13
/// Mock implementation of the IEditable and IViewContent.
15
public class MockEditableViewContent : MockViewContent, IEditable, ITextEditorProvider
17
public MockTextEditor MockTextEditor = new MockTextEditor();
19
public MockEditableViewContent()
24
public string Text { get; set; }
26
public ITextBuffer CreateSnapshot()
28
return new StringTextBuffer(Text);
31
public ITextEditorOptions TextEditorOptions {
32
get { return MockTextEditor.Options; }
35
public MockTextEditorOptions MockTextEditorOptions {
36
get { return MockTextEditor.MockTextEditorOptions; }
37
set { MockTextEditor.MockTextEditorOptions = value; }
40
public ITextEditor TextEditor {
41
get { return MockTextEditor; }
44
public IDocument GetDocumentForFile(OpenedFile file)
46
throw new NotImplementedException();