Repos having common tests for testing for different cases like to check if an array is sorted. Check if a number is even and so on.
This repository helps in building functionality based on Test driven development
, essentially one may not want to write say sorting
method each time it is needed as there are chances are high that it may not be successful in edge cases. In such cases it is wise enough to have one method with all the data permutations needed to test it.
Please refer to BMITests for a valid example showing the test data is generated in a range dynamically to test the BMI method.
The methods will be contained in Class.cs
file and its test(s) in the ClassTests.cs
file like say MergeSort.cs
will have its test in MergeSortTests.cs
file.
To run all the test(s)
dotnet test
Run a specific test
dotnet test --filter "FullyQualifiedName=UnitTests.Tests.CheckSorted.CheckPositive"
If you like using this repository and like to donate, please visit the below link. This work is made possible with donations like yours. PM for customizations and implementations .