Chicago .NET User Group – January 2018
Mocking .NET Without Hurting Its Feelings
Unit testing has become an accepted part of the lives of .NET programmers. To help focus tests to only the code they want to validate, Mocking Frameworks are a powerful tool. Like many tools, if you have an understanding of how the tool works under the hood, you can bend it to your will (and also know where it’ll break if you bend too much). In this session, you’ll learn about the two main types of mocking frameworks: constrained frameworks (like RhinoMocks and Moq) and unconstrained frameworks (such as Typemock Isolator and Telerik JustMock). Learn how the two actually do their magic and we’ll discuss the pros, cons, and limits of both. We’ll look at examples of how to use the frUnit testing. We’ll also look at examples of how to use the frameworks in your tests, mocking out dependencies from your own code and even third-party logic. You’ll get the most out of this session if you’re comfortable reading C# code and have a general understanding of class inheritance in .NET, along with some experience writing and running unit tests. Prior experience using mocking frameworks is not necessary.
Speaker: John Wright
As 17-year veteran of the software industry, John has gained development experience ranging from “shrink-wrapped” software to large, distributed networks using multiple platforms and technologies. He has a wide experience base with software development and management across the entire system lifecycle, including requirements gathering and analysis, architecture design, development, testing, and release. In addition, he has a pragmatic approach to and a heavy interest in continuous improvement of people, process, and product.
These days John focuses mostly on the Microsoft stack while working at Stack Overflow, but his first programming job was in C, TCL and Perl on the Linux platform. He made the shift to .NET around 2005 and has been here ever since. He has a passion for high-quality, clean code. Whether through sharing his experiences with TDD approaches, mocking frameworks, and static analysis tools, or guiding less experienced developers through design patterns, SOLID principles, and the darker crevices of the .NET framework, he enjoys sharing his approaches with his peers and learning from their experiences — helping everyone “level up” as a team.
- Refreshments and networking hour
- Mocking .NET Without Hurting Its Feelings
- Q&A and wrap-up