Should I unit test the model returned by DefaultModelBinder?

Posted by Byron Sommardahl on Stack Overflow See other posts from Stack Overflow or by Byron Sommardahl
Published on 2010-04-25T00:35:20Z Indexed on 2010/04/25 14:03 UTC
Read the original article Hit count: 441

I'm having some trouble unit testing the model returned by DefaultModelBinder. I want to feed in a fake form collection and check the model that it returns to make sure model properties are being bound properly. In my research, I'm not turning up -any- resources on testing the DefaultModelBinder. Maybe I'm missing something. Maybe I shouldn't be testing this part of MVC? Your thoughts?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about defaultmodelbinder