Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I just recently created a project that'll calculate the Fibonacci series, standard deviation, and the Pythagorean theorem. How would I go about adding Unit Tests and using FluentAssertions to test the methods. Would I have to install XUnit first, then after installing XUnit, use the FluentAssertions library to carry out the assertions? Below is a link to the project. The styling is not complete simply because I want to get the server-side processes complete first, then move onto styling.

https://github.com/zhadjah9559/TestingAndLogging

What I have tried:

I have downloaded the Nuget Package for FluentAssertions.
Posted
Updated 28-Feb-21 9:44am

1 solution

They claim the following here: Introduction - Fluent Assertions[^]
Quote:
Fluent Assertions supports a lot of different unit testing frameworks. Just add a reference to the corresponding test framework assembly to the unit test project. Fluent Assertions will automatically find the corresponding assembly and use it for throwing the framework-specific exceptions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900