alkampfer on December 6th, 2008

If you read last post you saw how to write a simple randomizer for the execution of NUnit test, but it has a problem, it mess up the nunit interface. The solution is not to ovveride the Tests property, but overriding the way the test are executed. To make it simple I simply take the [...]

kick it on DotNetKicks.com

Continue reading about Again On randomizer.

alkampfer on December 6th, 2008

Nunit can be extended in many way writing simple addins, I never tried to write an addin but since Nunit have some limitations I do not like I tried to create a very simple addin that permits me to randomize execution of tests. Randomization is really an interesting stuff because it helps to find interacting [...]

kick it on DotNetKicks.com

Continue reading about Randomizer nunit addin

alkampfer on December 6th, 2008

SetUp and TearDown are two attributes used to mark two methods as prologue and epilogue for each test of a fixture. Here is a typical use in test based on Rhino Mock: private MockRepository mrepo; [SetUp] public void SetUp() { mrepo = new MockRepository(); } [TearDown] public void TearDown() { mrepo.VerifyAll(); } With these two [...]

kick it on DotNetKicks.com

Continue reading about On SetUp and TearDown in Nunit

alkampfer on December 5th, 2008

Asp.net is a great environment to quickly develop sites, but if you does not know what you are doing you can get hurt with poor performances. Today I was analyzing a web page of a site because a developer reported to me that it is really really slow (more than 10 seconds to render), here [...]

kick it on DotNetKicks.com

Continue reading about Analyze a slow asp.net web page, tale of

Yesterday I fight with a strange bug, I have a simple class that calculate Sha256 of a string, It was used in a old part of a project where a single thread does a series of operations. Some months later the program is heavily evolved, and there is a new part that uses async pattern [...]

kick it on DotNetKicks.com

Continue reading about Always check for objects thread safety when you are doing multi thread programs