Video: In The Brain of Abid Quereshi - Introduction to Moq
Abid Quereshi introduces Moq, which is the only mocking library for
.NET developed from scratch to take full advantage of .NET 3.5 and C#
3.0 features, providing a practical, unobtrusive and straight-forward
way to quickly setup dependencies for your tests. It is relatively
easier to learn and use than most of the other mock object frameworks.
The
talk starts with a very short review about mocking, the difference
between mocks and stubs and implementing Test-Driven Development (TDD)
on the .Net platform. The project that Abid works on, and uses Moq
during the development process, is about building a global shipping
network system. The system includes objects like journeys, ports, and
legs. How to create mocks from interfaces or existing classes in order
to test these objects, and tips and pitfalls of using Moq to create
those mocks are explained with hands-on demonstration.
Version
3.0 RTM of Moq comes with key features like: Silverlight Support, New
simplified event raising syntax, Support for custom event signatures,
Improved property setter behaviour, Additional sample application code
and Better integration with Pex.
The project web site of Moq is: http://code.google.com/p/moq/. You can also find further information at the blog of Daniel Cazzulino, who is the primary author of Moq:http://www.clariusconsulting.net/blogs/kzu/archive/category/1062.aspx
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Hrady Ben replied on Fri, 2009/12/25 - 3:52am
c# is best oops programming language where we develop both windows and web application
Zetaclear