Changed implementation.

* Previous implementation relied on Assembly.GetCallingAssembly().
* GetCallingAssembly's result changes in the Release build as a result
* of optimizations (probably).
* During unit testing, Debug tests ran OK. Release tests however,
* failed because the calling assembly was the NUnit assembly, not the
* test assembly.