Some exercises with a cart with JSON and C#
The nuget packages included are:
- Newtonsoft.Json v9.0.1
- NUnit, NUnit.Console and NUnit.ConsoleRunner v3.6.0
Download and install packages with NuGet:
nuget restore
To build you only need MsBuild from the .NET Framework
MsBuild.exe .\CartManagerApplication.sln /t:Build /p:Configuration=Release /p:TargetFramework=v4.6.1
Run NUNIT3-CONSOLE on the assembly CartManagerApplication.exe
.\packages\NUnit.ConsoleRunner.3.6.0\tools\nunit3-console.exe .\CartManagerApplication\bin\Release\CartManagerApplication.exe
The resulting test report will be available on TestResult.xml
.\CartManagerApplication\bin\Release\CartManagerApplication.exe
The result json files are generated on:
.\CartManagerApplication\bin\Release\results\level1\output.json
.\CartManagerApplication\bin\Release\results\level2\output.json
.\CartManagerApplication\bin\Release\results\level3\output.json