If you the Israel .NET Developers User Group (IDNDUG) and you’d like to learn more about unit testing you can view my presentation here. I talked about unit tests and how to write good unit tests in the first session. I had a lot of fun and I hope that so did my audience. http://docs.google.com/present/embed?id=dd3zxkh_192g6gkd4gc&interval=5 … Continue reading Real world unit testing presentation
Tag: .NET
#Nose – the unit test discovery tool
One of the benefits of programming in C#/VB.NET is amount of tools available - from Visual Studio to build servers to unit testing frameworks it seems that there is a tool for every job. I thought that my .NET tool belt has everything I need until recently, while learning Python (actually IronPython) I’ve discovered Python-Nose … Continue reading #Nose – the unit test discovery tool
.NET unit testing essentials – Integrated test Runners
Unit testing success is determined by several factors: the project, team commitment and the tools used. Having a unit testing framework is a must, having an easy way to run your tests is just as important. Although every single unit testing framework in the market has way to run tests from a console and a … Continue reading .NET unit testing essentials – Integrated test Runners
nDepend Review
There comes a time in every single “real world” project when its codebase becomes hard to manage, methods become too long, classes too complex and objects tightly coupled until it’s hard to tell where a functionality starts and where it ends. This is exactly the problem that nDepend is trying to solve. By putting all … Continue reading nDepend Review
Checking expected exception message when using MS Test
In Typemock we use both NUnit and MSTest to run our unit tests. This practice enables us to check that Isolator works fine on both unit testing framework. Most of NUnit attributes can be translated fully into MSTest attributes (and vise-versa) there is one attribute we tend to use that works differently in MSTest - … Continue reading Checking expected exception message when using MS Test
XmlWriter that automatically close elements using IDisposable
System.Xml.XmlWriter provides an easy and lightweight way to write xml strings, unfortunately it has a little gotcha. consider the following xml string (borrowed from IronPython in Action): Using XmlWriter the following code is needed to create that string: Keep in mind the fact that the code above only creates 5 lines of xml, and as … Continue reading XmlWriter that automatically close elements using IDisposable
What to do when DebugBreak won’t let me debug on windows7/Vista
A curious problem that I had today at work: I’m working on a component that suppose to run as another “service”. Because of the environment limitations I could not just debug using visual studio (F5) and had to set my debug points manually using __debugbreak. I recently installed Windows 7 and so far I enjoy … Continue reading What to do when DebugBreak won’t let me debug on windows7/Vista
7 free tools for the Hobbyist .NET developer
I do some software development at home where I do not have the benefit of commercial software (i.e. Visual Studio Pro). Over the years I collected several open source/free tools that help me develop my pet projects. [Tools required, part 1/mariusm] The following is a short list of the tools I use all are … Continue reading 7 free tools for the Hobbyist .NET developer
How does Stopwatch work
I’ve been using Stopwatch (and blogged about it) for some time and it never occurred to me to check how it really works. When using it as a benchmarking tool the fact that perhaps it wasn’t as accurate as can possible be didn’t bother me at all. The question of the accuracy of Stopwatch become … Continue reading How does Stopwatch work
Performance optimization tip – understand your memory layout
.NET take care of all memory allocation and de-allocation and after a while it seems that programmers no longer need to understand exactly how data is stored in the memory. The idea of not needing to know how data is stored could not be farther from the truth, in fact memory layout have great impact … Continue reading Performance optimization tip – understand your memory layout