Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Commented Issue: Test framework detection not working [11012]

$
0
0
Instead of trying to detect the framework using Assembly.Load Method, we should use something like this

AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name = "Microsoft.VisualStudio.QualityTools.UnitTestFramework")

Because Assembly.Load works only with the FullName assembly and not the short name.

Thank you
Phil
Comments: ** Comment from web user: jesuissur **

I can't find how to create a patch, then this is the code I've changed in LateBoundTestFramework

public bool IsAvailable
{
get
{
assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(a => a.GetName().Name == AssemblyName);
return (assembly != null);
}
}


Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>