Tag Archives: wrapper

System.DateTime isolation

After System.Random Isolation I now want to isolate System.DateTime. The information in the struct is not very interesting, but the Now property is. That is a static property. Does that require a different approach? Hardly. IDateTime First I’ll define the … Continue reading

Posted in Test | Tagged , , , , , , , | Leave a comment

System.Random isolation

Writing a unit test is all about isolating the code under test. The best way to do this is by using interfaces. An interface only described the methods and properties, but lets you change the implementation as long as you … Continue reading

Posted in Test | Tagged , , , , , , | 6 Comments

Automation and Extensibility issue

Today I wrote a wrapper to be in control when unit testing some code that uses System.Random. After completing the task, which is mindless automation, I decided to create a T4 template for it. After completing the few lines in … Continue reading

Posted in Tooling | Tagged , , , | 2 Comments

Windows Azure SDK better with wrappers

Since Windows Azure SDK 1.2 back in 2010 I’m trying to get my unittests up and running. I posted about it on the Microsoft forum and consulted the JustMock forum. Nobody was able to provide the solution as it looks … Continue reading

Posted in Development | Tagged , , , , , , , , , , , , , , , | Leave a comment