Unit test C# class with xUnit

Опубликовано: 31 Октябрь 2024
на канале: Cottrell Coding
19,579
171

In this video, I demonstrate how to create a unit test for an existing C# class and project. I demonstrate adding the test to the project, connecting the test to the project, and writing both fact and theory tests. Additionally, I demonstrate how to create the before and after methods for xUnit.

At the end of the video, I never finish the Payroll refactoring. The function should read :

_grossPay = Hourly * 40 + Hourly * (Hours - 40) * (Decimal)1.5;