Masterclass: The Art of Unit Testing and TDD

Date: 4– 5 April 2019, IASI
Training fee: €600/participant plus VAT, only 18 seats available

To book your seats, please contact us by email ([email protected]) or phone (+40 741 103 133).

About the training

The Problem

Unit testing, done badly, can hurt your project more than it helps. In some cases, it may lead to project schedule delays, and unhappy developers due to huge maintenance problems. But when unit testing is done right, it can help the project and developers’ confidence immensely. The challenge is – how do you do it in a way that is helping, rather than hurting your project?

Objective

In this workshop we will learn essential test driven skills and techniques for writing unit tests in a readable, maintainable and trustworthy fashion, so that we can feel more confident in our code, make it simpler, and save ourselves time in debugging and maintaining our code base. we will also look at some code design issues that hurt testability.

1. Learn how to write readable, maintainable, trustworthy unit tests

2. Learn how to refactor and test legacy code, and what to do when we cannot change existing code.

3. Learn the principles of Test Driven Development, and develop new features using TDD.

4. Learn how to Pair Program, and experience it throughout the course

5. Learn about mocks, stubs fakes, and the difference between them

6. Learn about Isolation(mocking) frameworks, how they work, and why some frameworks are more capable than others.

Materials

All students get a PDF of all the slides in the course, in downloadable form.

Agenda

Day 1: Beginnings (09:00-17:00)

1. What is the “unit” in “unit testing”? A discussion about unit of work.

2. The first unit test

3. Basic NUnit APIs, test runners, tips and tricks

4. Writing readable tests

5. Test Driven Development Introduction

6. String Calculator Kata Exercises

7. Value based, State Based and Interaction Based Tests

8. Understanding Fakes, Mocks and Stubs

9. Hand Written Fakes, Stubs and Mocks

Day 2: Isolation Frameworks (09:00-17:00)

11. Isolation Frameworks: Constrained and Unconstrained

12. Isolation Framework Comparisons (Rhino Mocks, Typemock, Moq, FakeItEasy, NSubstitute, NUnitMocks, MsFakes)

13. Exercises

14. Unit Testing Best Practices

15. Code Review Exercises

The trainer

Roy is the author of “The Art of Unit Testing”, “Notes to a Software Team Leader” and “Elastic Leadership”. He writes code, ships software. He looks at the big picture and helps optimize continuous delivery flow. He gets things done. He likes the ideas behind DevOps and tries to implement them on a day to day basis. Roy also consults, Trains and speaks about Agile Teams, Agile and Elastic Leadership,CI/CD, DevOps, TDD and more.
Specialties: Automation and delivery, coding (.net, java, C++), Leading Technical People, Getting my hands dirty, TDD, Unit Testing and more.
Roy is a Bitcoin enthusiast and owns a few.

Date: 4– 5 April 2019, IASI
Training fee: €600/participant plus VAT, only 18 seats available

To book your seats, please contact us by email ([email protected]) or phone (+40 741 103 133).

Lunch and Coffee Breaks included in the price of the Masterclass.

Browse more masterclasses here.