I have been trying to fix this.
Debugging through .Net code (not just my code) seems to run fine - odd again.
Then I stumbled on this thread:
https://stackoverflow.co...-invalid-port-specified
All I had to do was to add the following code to fix things with the "Invalid port specified" exception.
[TestInitialize]
public void Initialize()
{
if (!UriParser.IsKnownScheme("pack"))
new System.Windows.Application();
}
Then finally I got the "Cannot locate resource 'resources/notebook.png'" - the error I was going for.
And I then could fix it by correcting the uri itself - I had to include the assembly name where the resource was registered.
as such:
@"pack://application:,,,/MyAssemblyName;component/Resources/notebook.png"
All is well that ends well.
Thanks again for your investigation !
(issue closed)