Tag.NET

NMock2 Documentation Now On MediaWiki

N

Due to changes on sourceforge.net and its hosted applications, the documentation of NMock2 – a library for assisting test driven development of .NET code by providing a dynamic Mock Object framework for .NET interfaces and classes (virtual and abstract members of classes) – has been moved from WikiSpaces to MediaWiki.
You can check it out at

Mocking Adventures with NMock2: Stubs

M

NMock2 is a library for assisting test driven development of .NET code by providing a dynamic mock object creation framework. In this article, I’m going to show you the basics of the new stub feature in NMock2. Note that this feature is currently only available on the development trunk in the subversion repository at . Therefore, the features discussed here may change for the next official release. Stubs can be used in scenarios where you have to test an instance of a class (let’s call this...

Use Enum’s with caution

U

In C# the class Enum is often used. Some geek’s argue that the Enum’s “improve code clarity and and reduce the probability of invalid values. … Enum’s are self-documenting.
Enum’s should be used with caution, since some things are not straight-forward. The following article will show you where to be cautious.

Net App filer in Vmware

N

For a project I have to learn some of the specialty of an iScsi NAS. To be precise it was Net App FAS 2500 Filer. These things are very nice but a little too expensive for my personal use. But Net App offers a nice simulator of their product and the simulator is free. You just need to create an account on the Net App web site and search for the word ”simulator” or just follow this link. (). Some bloody side note: the website doesn’t work fine with safari. Just use Firefox and...

Windows 7 – 64 Bit – A .NET Developer’s View

W

I’m currently working with Windows 7 Public Beta (Build 7000) and I’m very satisfied with it. I only had two blue screens since I have installed it 3 months ago. I would like to share some really cool features in W7 in an upcoming post and look at this video on Channel 9. But the interesting thing from a .NET Developers perspective is the 64 Bit part of Windows 7 (that should be the same as in Windows XP 64 Bit or Windows Vista 64 Bit) which I will cover in this post. First of all:...

NMock2 is fast. Really fast!

N

Andrew Kazyrevich published a post containing timing comparisons of Moq, Rhino Mocks, Isolator and NMock2.
And NMock2 – although still lacking some features – is very fast compared to the competitors. Woohoo!
I’m curious how the newly introduced features (mock classes, non-strict and recursive mocks) will change in this setup. I’ll check that out as soon as I find some time :-O
If you want to check the new features (alpha!) yourself then here is the svn URL:
Happy mocking!

NMock2 Release Candidate Version 2.0 is out

N

The first release candidate of version 2.0 of NMock2 – a .net dynamic mocking framework – is published. Check it out at: sourceforge.net You can provide feedback at: NMock2 forum Release Notes: virtual/abstract classes can now be mocked (with default or transparent mock style) Stack traces of exceptions thrown in event handlers of events fired on mocks are preserved Source is now on Visual Studio 2008 (target framework is still .net 2.0) Events of inherited interfaces can now be fired on mocks...

Delegate.DynamicInvoke for .NET Compact Framework

D

As you might already know I’m a certified windows mobile application developer. My speciality is hybrid application development for applications which target both the full .NET framework platform and also the mobile platform. Of course nobody wants to write the same code for each platform again so you have to come up with some tricks and solutions to overcome some limitations on the compact framework.

NMock2 and the year 2009

N

A short list of features that you can expect of NMock2 (.NET mocking framework) in one of the next releases:

mocking of classes
nonstrict mocks
detectation of swallowed exceptions
NMock2 ReSharper plugin for code completion
state full mocks

Recent Posts