Rhino Mocks 2.6.4: Bug Fix Release

time to read 1 min | 191 words

I think that I should drop a note about all the three recent releases. In version 2.6.2 I changed the way Rhino Mocks handles dynamic code generation to make sure that Rhino Mocks would only generate the a type for a mock type once. Before, it would generate the mock type for each MockRepository.

The meaning of this change is huge memory optimization, and a significant performance increase. The downside is that bugs that weren't noticable when the types were geberated to different assemblies now surface. The main issue were generics, where the way Rhino Mocks decided if to get a cached type or create a new one was flawed. Version 2.6.3 fixed an issue with mocking a generic type more than once (since Rhino Mocks tried to generate a type that already exists). This version (2.6.4) fixes a problem where Rhino Mocks didn't take into account the generic parameters of a type.

Now it's fixed. So you can go ang get sources and binaries from this page.

Have a great time using this, and happy mocking.