Category Archives: Unit Test

How to set EntityCollection property of service response for unit testing purposes [CRM]

When unit testing CRM C# codes, you may find that you need to mock the response of calls to CRM’s Organisation service. A number of response classes in the SDK contain an EntityCollection property. This property however is null and … Continue reading

Posted in CRM, Unit Test | Leave a comment

Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

The other day I came across this problem that I had not seen before. It was to do with running unit tests in Visual Studio 2008. All tests would fail with the exception: Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable … Continue reading

Posted in Unit Test | Leave a comment