|
2 | 2 | using System.Linq;
|
3 | 3 | using System.Threading;
|
4 | 4 | using System.Windows.Forms;
|
5 |
| -using System.Windows.Input; |
6 | 5 | using Microsoft.Vbe.Interop;
|
7 | 6 | using Microsoft.VisualStudio.TestTools.UnitTesting;
|
8 | 7 | using Moq;
|
@@ -171,7 +170,7 @@ public void ImportModule()
|
171 | 170 | var state = new RubberduckParserState(vbe.Object, new Mock<ISinks>().Object);
|
172 | 171 | var commands = new List<CommandBase>
|
173 | 172 | {
|
174 |
| - new ImportCommand(openFileDialog.Object) |
| 173 | + new ImportCommand(vbe.Object, openFileDialog.Object) |
175 | 174 | };
|
176 | 175 |
|
177 | 176 | var vm = new CodeExplorerViewModel(new FolderHelper(state, GetDelimiterConfigLoader()), state, commands);
|
@@ -213,7 +212,7 @@ public void ImportMultipleModules()
|
213 | 212 | var state = new RubberduckParserState(vbe.Object, new Mock<ISinks>().Object);
|
214 | 213 | var commands = new List<CommandBase>
|
215 | 214 | {
|
216 |
| - new ImportCommand(openFileDialog.Object) |
| 215 | + new ImportCommand(vbe.Object, openFileDialog.Object) |
217 | 216 | };
|
218 | 217 |
|
219 | 218 | var vm = new CodeExplorerViewModel(new FolderHelper(state, GetDelimiterConfigLoader()), state, commands);
|
@@ -256,7 +255,7 @@ public void ImportModule_Cancel()
|
256 | 255 | var state = new RubberduckParserState(vbe.Object, new Mock<ISinks>().Object);
|
257 | 256 | var commands = new List<CommandBase>
|
258 | 257 | {
|
259 |
| - new ImportCommand(openFileDialog.Object) |
| 258 | + new ImportCommand(vbe.Object, openFileDialog.Object) |
260 | 259 | };
|
261 | 260 |
|
262 | 261 | var vm = new CodeExplorerViewModel(new FolderHelper(state, GetDelimiterConfigLoader()), state, commands);
|
|
0 commit comments