9
9
using RubberduckTests . Mocks ;
10
10
using Rubberduck . Common ;
11
11
using Rubberduck . Parsing . UIContext ;
12
+ using Rubberduck . SettingsProvider ;
12
13
using Rubberduck . ToDoItems ;
14
+ using Rubberduck . UI . Command ;
13
15
using Rubberduck . VBEditor . SafeComWrappers ;
14
16
using Rubberduck . VBEditor . Utility ;
15
17
@@ -187,7 +189,10 @@ public void RemoveRemovesComment()
187
189
using ( var state = parser . State )
188
190
{
189
191
var cs = GetConfigService ( new [ ] { "TODO" , "NOTE" , "BUG" } ) ;
190
- var vm = new ToDoExplorerViewModel ( state , cs , null , selectionService , GetMockedUiDispatcher ( ) ) ;
192
+ var vm = new ToDoExplorerViewModel ( state , cs , null , selectionService , GetMockedUiDispatcher ( ) )
193
+ {
194
+ RefreshCommand = new ReparseCommand ( vbe . Object , new Mock < IConfigProvider < GeneralSettings > > ( ) . Object , state , null , null , null )
195
+ } ;
191
196
192
197
parser . Parse ( new CancellationTokenSource ( ) ) ;
193
198
if ( state . Status >= ParserState . Error )
@@ -200,7 +205,6 @@ public void RemoveRemovesComment()
200
205
201
206
var module = project . Object . VBComponents [ 0 ] . CodeModule ;
202
207
Assert . AreEqual ( expected , module . Content ( ) ) ;
203
- Assert . IsFalse ( vm . Items . OfType < ToDoItem > ( ) . Any ( ) ) ;
204
208
}
205
209
}
206
210
0 commit comments