The same line of code in the same assembly works for one test fixture but not another. Here is the line of code:
var dic = new ResourceDictionary { Source = new
@Prince Ashitaka answer tells you how to correct your URI
However the preferred way of accessing a ResourceDictionary is that in XAML you add it on as a merged dictionary
then you can access it via code using the TryFindResource(string Key) from any code behind file
TryFindResource(string Key)