I'm trying to write up a custom WebFormView to help with skinning a website I'm working on. The code is loosely based on how it's done in Oxite. The problem I'm having right now though is I'm not sure how I would unit test the Render method since it has a call to the BuildManager.
There are no unit tests for this code in the Oxite project and the unit tests for the MVC framework don't help since IBuildManager and BuildManagerWrapper are marked as internal. Is there an easy way to test this code if I go with using the IBuildManager that's in the WebFormView class?
I figure I have a couple options. The first is to do as the MVC team did and wrap the build manager myself so I can mock it up for testing. Then there's using reflection to mock an object and inject it in to my class or just deal with this code not being covered.
I think option 1 is the best option but before I go doing the work I wanted to make sure I wasn't making this harder than it really is.