This three-day program provides a highly interactive exploration of unit test automation, principles and practices. Companies such as Microsoft, Google, and IBM have already realized the potential that lies in Unit Test automation. Following these practices reduces the amount of defects in your software decreasing the effort involved in product development and result in more satisfied customers. Learn how to use frameworks for test writing and how to isolate your code in an efficient and easy manner.
- Writing basic unit tests using MsTest/NUnit
- Learning principles of Test Driven Development
- Experience Best Practices of unit testing
- Understanding the difference between unit tests and acceptance tests.
- Learn how to test complex object hierarchies
- Understand the difference between Interaction Testing and state based testing.
- Understand the principles of Isolation using modern isolation frameworks.
- Learn advanced Mocking techniques
- Learn how to leverage frameworks to ease authoring of tests
- Real Life examples.
This is an entry-level class and appropriate for developers seeking knowledge and understanding about TDD and test automation.
Participants must have at least one year’s developing software using .NET and the ability to program in C# .NET 3.X or 4.0 (Visual Studio 2010)
- Introduction to Automated Unit Tests
- Writing the First Unit Tests using MsTest
- Unit testing basics
- Executing and managing unit tests
- Unit tests best practices
- Automating Acceptance Tests
- Mock and Stubs
- Writing Manual Mocks
- The differences between Mocks, Stubs & fakes
- Introduction to NMock
- Introduction To Typemock Isolator.
- Basic Isolator API
- Setting Expectations
- Creating Mocks
- Defining behaviors
- Advanced Isolator API
- Handling Events
- Duck Typing
- Custom behaviors
- Patterns for breaking dependencies.
- Class Setup:
- One workstation per two programmers
- Development tools (e.g. compiler, IDE)
- Visual Studio .NET is required
- Max. 20 students per course.
Unless otherwise stated, the class runs 3 days, 9:30 to 17:30.