Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am part of a small tech company and was doing manual testing for them. They have now switched me over to Unit Testing in C# for some of the developers. The devs are rather young and know little to nothing about Unit Tests and I am having a hard time finding answers to my questions. I have done over 70% of the Unit Tests but still don't know if I am doing it "correctly". I unfortunately can't share the code cause I signed a agreement so no one steals our code.

What are some good resources that I could use to learn better C# and better Unit Testing practices that are interactive and not just watching a video?

I have a basic understanding of Programming which I think is the real hindrance. :/. If this is not the best place to ask where can I find resources or forums to help me?

Thanks in advance
Posted
Updated 13-May-15 5:19am
v2
Comments
Andy Lanng 13-May-15 11:36am    
The question is valid. I am surprised google hasn't been more helpful.

My first hit was https://msdn.microsoft.com/en-us/library/ms182532.aspx

You can post striped code. Just take out the logic and post an example of what the issue is. It doesn't even have to be from your code. Just make up a scenario to demo what you need help with. Any NDA allows that.
jmulberry 13-May-15 15:38pm    
So I have run across this and it was an indicator that I was doing stuff wrong. (I had been using expected Exception for all tests that catch errors.) But Its so basic. I suppose stripped code would work. Is this forum a valid place to put such questions?
Andy Lanng 13-May-15 16:10pm    
Absolutely.
In your post:
Summarize in the subject.
Detail the issue in the body. Post code (even mock code, as I often do) to show us what you've tried using the <pre> tags (the yellow 'code' button above the body text area) and ask specific questions.
If you follow these guidelines then you will find the professionals here eager to lend a hand and help you learn more about the subject.
I hope I can be of service in the future ^_^

PS: I use Visual Studio unit tests often so I'm sure I'll be able to help on you next post ^_^
BillWoodruff 14-May-15 3:14am    
You can certainly describe the structure (without details) of how you are implementing unit testing, and describe which (if any) 3rd. party tools you are using for unit testing.

Have you searched Code Project and read the resources here on unit testing ?
jmulberry 29-May-15 15:17pm    
I am relatively new to Code Project. I was using Stack Exchange but I find there demeanor to be more harsh to beginners who have little to no basis in programming. I will have to read those. Do any stand out as better than others. I am currently reading Advanced Unit Testing, Part I - Overview. Even though they use NUnit instead of MSTest it looks to be very informative.

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