4
Answers

Unit testing C#

Aarti Gupta

Aarti Gupta

4y
717
1
how to unit test C# code and logic?
Answers (4)
3
Sachin Singh

Sachin Singh

11 55.8k 87.3k 4y
there are various ways , one is to use NUnit
https://www.c-sharpcorner.com/article/nunit-with-C-Sharp/
Accepted
2
Rajanikant Hawaldar

Rajanikant Hawaldar

32 38.8k 451k 4y
https://www.c-sharpcorner.com/article/a-basic-introduction-of-unit-test-for-beginners/
1
Harsh Shah

Harsh Shah

NA 1.2k 7.3k 4y
Refer to these
https://docs.microsoft.com/en-us/visualstudio/test/walkthrough-creating-and-running-unit-tests-for-managed-code?view=vs-2019
https://www.c-sharpcorner.com/article/a-basic-introduction-of-unit-test-for-beginners/ 
1
Khaja Moizuddin

Khaja Moizuddin

161 11.5k 1.9m 4y
You can do unit testing with various ways, like by using MsTest, MBUnit, NUnit etc, please refer one of my article where I used MBUnit for uni testing