โ What unit tests should I create for my ASP.NET API Controller / project?
I am new to Unit Testing. I have watched a video on XUnit and FluidAssertions, but I am unsure as to what the "industry standards" of creating unit tests is like. Should you create one unit test per controller method? In my case, what unit tests would you create?
API Project: https://github.com/OEvans117/RequestConverter/tree/master/RequestConverterAP
API Controller: https://github.com/OEvans117/RequestConverter/blob/master/RequestConverterAPI/Controllers/RequestController.cs
XUnit Project: https://github.com/OEvans117/RequestConverter/tree/master/RequestConverterAPI.Tests
Thank you! ๐
GitHub
RequestConverter/RequestController.cs at master ยท OEvans117/Request...
Convert HTTP Requests & Websockets from Fiddler, Chrome into code from multiple programming languages. Ability to modify global/language related settings which will impact the output. - Req...
GitHub
RequestConverter/RequestConverterAPI.Tests at master ยท OEvans117/Re...
Convert HTTP Requests & Websockets from Fiddler, Chrome into code from multiple programming languages. Ability to modify global/language related settings which will impact the output. - Req...
1 Reply
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.