Tag Archives: Unit Test

Unit Test – Fluent Assertions

By | 18/10/2023

In this post, we will see what “Fluent Assertions” is and how we can use it in our projects.But first of all, what is “Fluent Assertions”?Fluent Assertions is a popular library for writing more expressive and readable unit tests in C#. It provides a fluent, natural language syntax for asserting the behaviour of our code.For… Read More »

Unit Test – Moq

By | 04/08/2021

In this post, we will see how to use Moq in order to create Unit Test for a Class Library project used to manage CRUD operations.But, what is Moq?Moq is a library used to create mock objects that simulate or mimic a real object.Here, we can find the Moq project. First of all, we define… Read More »

Unit Test – Web API

By | 31/07/2020

In this post, we will see how to implement Unit Tests for the Web API created in the post: Docker – Web API and Sql Server. First of all, we open Visual Studio and we add a xUnit Test Project called TestWebApiServices: Then, we add a file called UserControllerUnitTests, where we will define all objects… Read More »