Test Driven Development (TDD), and Refactoring Legacy Code Using C#
Duration: 28 hours
Prerequisites: C# programming experience and an understanding of object-oriented design principles
Students Will Learn:
- Why Test?
- Unit Testing Basics
- Unit Testing Details
- Mocks, Fakes, Stubs and Drivers
- Database Testing
- Refactoring Basics
- Patterns and Anti-Patterns in Test Driven Development
- Refactoring Legacy Code
- Analysis and Coverage
- System, Regression and User Acceptance Testing
This course provides students with hands on experience learning Test Driven Development (TDD) using NUnit and Microsoft’s Visual Studio. Students will build unit tests using mocks, fakes, stubs and drivers, and address issues working with databases and other systems. Student will create tests and code that will be more likely to meet and exceed requirements. Code that receives “test coverage” will not break existing systems, because tests are passed before code is checked in.
Students will spend time working with the issues involved in refactoring legacy code, safely cutting into an already deployed system. Students will work on looking for, or creating “seams” to more safely improve code or add features, and work on identifying “code smells” that need attention in a productive system.
Finally, students will explore dependency issues as well as techniques to better understand and improve complex systems.
Comprehensive C# labs provide facilitated hands on practice during the course, allowing students to develop competence and confidence with the new skills being learned.
|Why TDD? Think Twice, Write
Production Code Once
||Basic Unit Testing
|Comprehensive Unit Testing Concepts
||Mocks, Fakes, Stubs and Drivers
|Database Unit Testing
|Patterns and Anti-Patterns in TDD
||Refactoring Legacy Code
||Risks Changing Legacy/Production Systems
|Microsoft .NET Developer: C#||5-course track