Click here to Skip to main content
15,566,394 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
99.99% of unit tests tutorials use "a+b" examples, ignoring all real life cases. How to test database functions? How to test reading/saving to file? How to test void methods? Etc etc.

Surely there must be at least one useful guide on the internet.

What I have tried:

Searching a lot of websites for the answer but it does not exists.
Updated 14-Mar-21 9:53am

1 solution

Look on the right side of this page, and start studying the related questions:

Related Questions
How to do unit testing in C#
Automated unit testing in C sharp
Unit test is crashing
Using conditional compilation for unit testing
Unit test a webrequest that uses a proxy
Unit Test Dependent Methods
Unit Test Project Error
Help with unit testing c# code
Unit test frameworks
unit test implementation

"Searching a lot of websites for the answer but it does not exists." Nonsense !
You need to learn better search skills.

Try searching on specific topics like: "c# unit test database functions" [^]
Share this answer
Maciej Los 15-Mar-21 5:51am    
BillWoodruff 15-Mar-21 7:22am    
Thank you, Maciej

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900