File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 25
25
<BitmapImage x : Key =" UndoImage" UriSource =" ../../Resources/arrow-circle-left.png" />
26
26
<BitmapImage x : Key =" PrintImage" UriSource =" ../../Resources/printer.png" />
27
27
<BitmapImage x : Key =" AddTestModuleImage" UriSource =" ../../Resources/Custom/PNG/ListOfTests.png" />
28
- <BitmapImage x : Key =" AddTestModuleWithStubsImage" UriSource =" ../../Resources/Custom/PNG/ListOfTests.png" />
29
28
<BitmapImage x : Key =" AddStdModuleImage" UriSource =" ../../Resources/Custom/PNG/AddModule.png" />
30
29
<BitmapImage x : Key =" AddClassModuleImage" UriSource =" ../../Resources/Custom/PNG/AddClass.png" />
31
30
<BitmapImage x : Key =" AddUserFormImage" UriSource =" ../../Resources/Custom/PNG/AddForm.png" />
166
165
Command =" {Binding AddTestModuleWithStubsCommand}"
167
166
CommandParameter =" {Binding SelectedItem}" >
168
167
<MenuItem .Icon>
169
- <Image Height =" 16" Source =" {StaticResource AddTestModuleWithStubsImage }" />
168
+ <Image Height =" 16" Source =" {StaticResource AddTestModuleImage }" />
170
169
</MenuItem .Icon>
171
170
</MenuItem >
172
171
<Separator />
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ private string GetNextTestModuleName(IVBProject project)
225
225
226
226
private IEnumerable < Declaration > GetDeclarationsToStub ( Declaration parentDeclaration )
227
227
{
228
- return _state . AllUserDeclarations
228
+ return _state . DeclarationFinder . Members ( parentDeclaration )
229
229
. Where ( d => Equals ( d . ParentDeclaration , parentDeclaration ) && d . Accessibility == Accessibility . Public &&
230
230
( d . DeclarationType == DeclarationType . Procedure || d . DeclarationType == DeclarationType . Function || d . DeclarationType . HasFlag ( DeclarationType . Property ) ) )
231
231
. OrderBy ( d => d . Context . Start . TokenIndex ) ;
You can’t perform that action at this time.
0 commit comments