예제 #1
0
        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));
        }
예제 #2
0
 public IEditor NewEditor()
 {
     var editor = new EditorMock();
     Editors.Add(editor);
     return editor;
 }