I am new to mono-cecil, so my question is if anyone knows of any product out there that currently performs the following capability: - Make class methods, fields and properties virtual so that they can be easily mocked from from unit test code. - Do it such that original production assembly is not modified.
That means, I have a production library call Foo.dll, and a unit test project FooTest.dll and the project that creates FooTest.dll references the project that produces Foo.dll. Next, Visual Studio, as part of it's build process, copies Foo.dll into the bin output folder of FooTest.dll so that the referenced DLL is in the same folder when the test executes. I want to ONLY modify the version of Foo.dll that gets copied into the FooTest project as part of the build step. The original Foo.dll should remain the same. I looked at Fody to do this, but they told me it won't do that. In fact, they don't think it's a good idea, which leads me to think that's probably the wrong tool for this job. I would like to be able to solve this problem because I think it would be really useful to have a general way of making production code testable *without* having to modify it. I realize some people will think this is a bad idea, but I believe it will have its uses. So my first step is to determine if this is something that anyone has already done. Please let me know if you have any thoughts on this. Thank you. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
