Collection.CSharp is a C# class library containing some collection classes, which we don't need frequently but sometimes. It depends on .NET Standard 2.1.
It contains the following classes:
- Maroontress.Collection namespace
- Visual Studio 2022 (Version 17.2) or .NET 6.0 SDK (SDK 6.0.300)
git clone URL
cd Collection.CSharp
dotnet build
Install ReportGenerator as follows:
dotnet tool install -g dotnet-reportgenerator-globaltool
Run all tests and get the report in the file Coverlet-html/index.html
:
rm -rf MsTestResults
dotnet test --collect:"XPlat Code Coverage" --results-directory MsTestResults \
&& reportgenerator -reports:MsTestResults/*/coverage.cobertura.xml \
-targetdir:Coverlet-html