Hi,
I am starting to use TypeMock and found the following issue:
When I try to create a database using Microsoft.Practices.EnterpriseLibrary.Data I get the following exception:
"The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, Flp]) failed: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Strategy type ConfiguredObjectStrategy, index 2)"
When executing: Database db = DatabaseFactory.CreateDatabase();
I'd like to note that on the specific unit test method I am not mocking anything, this is a unit test on the DAL and I am hitting the database directly. If I remove the reference to TypeMock, TypeMockArrangeActAssert and my test classes from the BLL it works perfectly; I can create the database without any issues.
I am using version 5.3.1.0.
Any idea on how to solve this issue?
Update: I just noticed that it fails if I execute the unit test method using TestDriven.net (right-click) or NUnit run via TMockRunner. It I start directly NUnit it works; of course, my BLL tests failed since the mocks are not enabled (Typemock Isolator is not currently enabled). Also, the tests work if I right click on Debug button from ReShaper.
Thanks,
Teo