Best Unit test products?

  • Thread starter Thread starter David Levine
  • Start date Start date
D

David Levine

Hello,

I want to get information on unit test and related (e.g. mock object)
products available for managed code. What products are available and what do
you think about them? Which are the best, which do you recommend, strengths
and weaknesses, etc. For example, how does NUnit compare to Team System's
unit test?

TIA
 
David said:
I want to get information on unit test and related (e.g. mock object)
products available for managed code. What products are available and what do
you think about them? Which are the best, which do you recommend, strengths
and weaknesses, etc. For example, how does NUnit compare to Team System's
unit test?

NUnit is just fine. The GUI is sort of klunky but it's functional. It
would be nice if it were better integrated with VS - eg, click on a
failed test, and jump to the source line - but it's quite usable
without that integration.

Team System costs a fortune. It's probably fine for in-house tests,
but you sure can't rely on your customers or collaborators having it.

--

..NET 2.0 for Delphi Programmers <http://www.midnightbeach.com/.net>

Delphi skills make .NET easy to learn
Just printed, and shipping now.
 
Jon, have you seen TestDriven.net? That gives you nice IDE integration.
 
In addition to NUnit you may want to look into DotNetMock for as a more
advanced Mock Object framework, if your application needs it.

Dan Manges
 
David said:
Thanks, I've never heard of it. How does it compare to NMock?

I haven't used NMock, so I can't really compare the two, but DotNetMock
has many of the standard .NET interfaces pre-defined in ready-to-use
mock objects. It also makes it easy to set expectations for attribute
values and method calls and then verify that those expectations were met.

Sorry I can't provide more info.

Dan
 
Dan Manges said:
I haven't used NMock, so I can't really compare the two, but DotNetMock
has many of the standard .NET interfaces pre-defined in ready-to-use
mock objects. It also makes it easy to set expectations for attribute
values and method calls and then verify that those expectations were met.

Sorry I can't provide more info.

That's not the kind of mocking interface I tend to use. I use
EasyMock.NET, which allows the mocking of arbitrary interfaces. The
Java version has recently moved on to version 2 which is lovely, but
the equivalent for .NET wouldn't work, unfortunately, due to generics
differences (IIRC).

It's not terribly easy to see how to use DotNetMock (due to the lack of
docs) but I don't *think* it's doing quite the same kind of thing...
 
Back
Top