Skip to content

Unit Testing Labs

This set of labs will help participants understand what is unit testing and how to perform unit testing, while adopting enterprise standards and practices.

What is Unit Testing

Unit testing is a type of software testing that focuses on testing the smallest piece of code that can be logically isolated from our application and verifies its behavior independently from the other parts.

Unit testing typically consists of three phases. - Initialization of the small portion of the application we want to test. - Applying some stimulus to the portion of the application under test (usually by method invocation). - Observing the resulting behavior.

These three unit test phases are known as Arrange, Act and Assert. More illustrations of these concepts to come in the Mocking section.

Benefits of Unit Testing

There are many benefits of unit testing. Please checkout the Unit Testing page to learn more.