Mock object can be used with .NET framework and utilize in all kinds of .net unit testing, Normally real object call is slow because of lots other dependency like libraries, db etc.
also if real object is not 100% ready. In all that scenario Rhino Mocks framework can be used.
For functional testing you have to have real object ready and for unit testing Rhino Mock is the best and quick solution.
Using rhino mock you can simply create mock object and from the caller method you can call mock object instead of calling real object.
to know more about Rhino Mock you can refer following links
also if real object is not 100% ready. In all that scenario Rhino Mocks framework can be used.
For functional testing you have to have real object ready and for unit testing Rhino Mock is the best and quick solution.
Using rhino mock you can simply create mock object and from the caller method you can call mock object instead of calling real object.
to know more about Rhino Mock you can refer following links
- http://stephenwalther.com/archive/2008/03/23/tdd-introduction-to-rhino-mocks
- http://www.asp.net/mvc/overview/older-versions-1/contact-manager/iteration-5-create-unit-tests-cs
- http://aspalliance.com/1400_Beginning_to_Mock_with_Rhino_Mocks_and_MbUnit__Part_1.all
- http://blog.vuscode.com/malovicn/archive/2007/02/05/tdd-rhino-mocks-part-1-introduction.aspx
- http://beyondrelational.com/modules/2/blogs/79/posts/11528/unit-testing-with-rhino-mock-net.aspx
No comments:
Post a Comment