About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (20)
- Development (208)
- Security (17)
- Test (32)
- Tooling (166)
- Uncategorized (168)
Most used tags
Tag Archives: Rhino mocks
Rhino ServiceBus first look
I’m a huge fan of Rhino Mocks and have written about it on this blog. Today I read that Ayende has an implementation for a Service Bus. Like nServicebus but “free”, even Udi Dahan talks about it. This is a … Continue reading
Ask google
In my case I ended up on a number of stackoverflow pages. Unit testing error, could not load file or assembly To reproduce a bug I created a unit test with Rhino mocks. The testclass inherited from the testObject which … Continue reading
Async unit test
With the .NET framework 4.5 making stuff asynchronous has become very easy with async-await. I’ve looked into unit testing this new way of programming and found that Microsoft thought about this too.
During my exercise I had to replace my trusted RhinoMocks by NSubstitute when the tests are run in parallel. Seems that RhinoMocks is not thread safe. More about that in the references. Continue reading
Async and structuremap
Update to structuremap 3.1 to solve System.MissingMethodException in async unittests. Continue reading
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 datetime, design pattern, isolation, Rhino mocks, static, stub, unittest, wrapper
Leave a comment