Perhaps extract this https://github.com/fsprojects/VisualFSharpPowerTools/blob/master/src/FSharpVSPowerTools.Logic/NavigateToItem.fs#L149-L162 as a utility function and use it here.

It handles projects in solution items as our test projects in test folders.