I have code that uses Crystal Reports runtime libraries to generate and discard a small dummy report to ensure libraries are loaded into memory in a timely manner before the user creates an authentic report. (This is a βperceived performance" issue.) Performance has improved markedly when the user generates a report, so itβs clear that everything works.
Now I need to write a unit test, which proves that Crystal libraries are really loaded into memory when it was expected, but my attempts to check what is used there with Assembly.GetExecutingAssembly().GetModules() do not help. ( GetCallingAssembly().GetModules() also no better.)
How can I check from my unit test to find out if these assemblies are loaded?
TIA
Neil Haughton Apr 01 '14 at 11:23 2014-04-01 11:23
source share