private void CreateVim() { var creationListeners = new[] { new Lazy<IVimBufferCreationListener>(() => _simpleListener) }; _vimRaw = new Vim( _vimHost.Object, _bufferFactory, CompositionContainer.GetExportedValue<IVimInterpreterFactory>(), creationListeners.ToFSharpList(), _globalSettings, _factory.Create<IMarkMap>().Object, _keyMap, MockObjectFactory.CreateClipboardDevice().Object, _factory.Create<ISearchService>().Object, _fileSystem.Object, new VimData(_globalSettings), _factory.Create<IBulkOperations>().Object, _variableMap, new EditorToSettingSynchronizer(), new StatusUtilFactory()); _vim = _vimRaw; _vim.AutoLoadVimRc = false; _vim.AutoLoadSessionData = false; }
public void ToFSharpList() { var a = new[] { 1, 2, 3 }; var b = a.ToFSharpList(); Assert.AreEqual(FSharpList.Create(1, 2, 3), b); }