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
What I use is with UriKind like
var resource = new ResourceDictionary { Source = new Uri("/myAssemblyName;component/Themes/generic.xaml", UriKind.RelativeOrAbsolute) };
HTH