Monthly Archives: February 2016

Grasshopper Unit testing

“I have created my code, split out some functionality and written the tests. But the mocks have become a real mess, and much more work than I had thought it would be. Can you help me, Sensei?” “Of course. Show … Continue reading

Posted in .Net, Codeproject, Development, Methodology, Testing | Tagged , , | 3 Comments

Let IntelliTest generate your tests!

We corrected our function to calculate the GCD so that it now runs correctly. But is the function correct in all the cases? Have we really tested everything? It would be nice if there was a tool that could tell … Continue reading

Posted in .Net, Codeproject, Debugging, Development, Methodology, Testing | Tagged | Leave a comment

How to set up a Parameterized Unit Test

In my previous post we saw how to set up unit testing using Visual Studio. The code we want to test is a (simple) function to calculate the greatest common divisor, and we wrote our first test. The test we … Continue reading

Posted in .Net, Codeproject, Debugging, Development, Methodology, Testing | Tagged , , , , | Leave a comment

Setting up unit testing

Introduction In the previous posts I talked about unit testing. I gave some background, and I explained the flow of Test-driven Development (TDD). So now is the time to set things up. In this article I will use the calculation … Continue reading

Posted in .Net, Codeproject, Development, Methodology, Testing | Tagged | 3 Comments