public void CreateContext() { context = new CSharp.Context(); mock = new EditorMock(); var prototype = EditorObject.CreatePrototype(context.Environment); context.SetGlobal("edit", new EditorObject(context.Environment, prototype, mock)); }
public IEditor NewEditor() { var editor = new EditorMock(); Editors.Add(editor); return editor; }