Unit Testing/xUnit.net/Test Exceptions

Create a C# Program
Create the following C# program. Save it as

Create a Test Program
Create the following C# test program. Save it as

Test Success
Test the program by running it in a terminal or command prompt in the same folder as the project above and observe the results. dotnet test

Test Failure
Change the multiply source code somehow, such as multiplying the string by a positive number. Test the program by running Jest again and observe the results.