© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. HimschootMicrosoft Blazorhttps://doi.org/10.1007/978-1-4842-7845-1_8

8. Unit Testing

Peter Himschoot1  
(1)
Melle, Belgium
 

In previous chapters, we have been building a PizzaPlace application, which contains a number of components. We have tested these components by running the application and interacting with it. Here, we will look at writing unit tests for Blazor components using bUnit and MOQ.

Where Can We Find Bugs?

When building software, what are the causes of bugs? As it turns out, in every step of building software, bugs can be introduced. So let us walk over the lifetime of a software project as shown in Figure 8-1. Figure 8-1 also illustrates another ...

Get Microsoft Blazor: Building Web Applications in .NET 6 and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.