Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.56 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.56 KB

UnitTests

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.

Conventions

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.

CLI

To run all the test(s)

dotnet test

Run a specific test

dotnet test --filter "FullyQualifiedName=UnitTests.Tests.CheckSorted.CheckPositive"

Donations

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 .

paypal