. NET Unit Testing plans?

Coming back right into a little bit more.NET after a few-years of not utilizing it permanent, and also questioning what the excellent unit testing plans are nowadays.

I'm acquainted with NUnit (a couple of years ago), and also have actually played quickly around with IronRuby, with the objective of obtaining something like rspec going, yet do not recognize much past that.

I understand I can google for this and also call it a day yet I think I'm most likely to get a far better and also extra enlightened feedback from asking an inquiry below :-)

Pointers?

0
2019-05-03 17:54:41
Source Share
Answers: 8

This is actually an individual point of view on my component (I presume that is repetitive given that it is a discussion forum). NUnit, MSTest, ect all do rather mutch the very same point. Nonetheless I locate NMock crucial.

NMock or any kind of mocking plan is not unit testing yet it makes it a lot less complicated to do unit testing that it mught too be.

0
2019-05-31 16:35:49
Source

Stick to NUnit. Do not go anywhere near MSTest.

NUnit+ReSharper is an outright pleasure to collaborate with.

0
2019-05-31 16:27:12
Source

I made use of to make use of NUnit, yet I switched over to MbUnit given that it has even more attributes. I enjoy RowTest. It allows you parametrize your examinations. NUnit does have a clutter bit far better device assistance though. I am making use of ReSharper to run MbUnit Tests. I've had troubles with TestDriven.NET running my SetUp approaches for MbUnit.

0
2019-05-10 17:59:51
Source

xUnit.net resembles it gives a somewhat various strategy to N/MB/MS/ Unit, which is intriguing.

In my look for an rspec - like remedy (due to the fact that I LOVE the rspec), I additionally found NSpec, which looks a little bit verbose, yet incorporated with the NSpec Extensions addon to make use of C# 3 expansion approaches, it looks rather wonderful.

0
2019-05-10 13:01:20
Source

We make use of NUnit and also MBUnit below. We make use of TestDriven.NET to run the device examines from within Visual Studio. We make use of the superb, very advised RhinoMocks as a simulated structure.

0
2019-05-10 05:49:00
Source

I such as MbUnit, emergency room, Gallio. Most notably to me is having excellent devices sustain inside Visual Studio. For that I make use of Resharper, which has an MbUnit test runner. A great deal of individuals appear to such as TestDriven.NET as their examination jogger too.

0
2019-05-07 18:17:21
Source

I such as TestDriven.NET (despite the fact that I make use of ReSharper ) and also I'm rather satisfied with XUnit.net. It makes use of Facts as opposed to Tests which many individuals do not like yet I such as the distinction in terms. It's valuable to consider a collection of instantly conclusive Facts concerning your software program and also see which ones you go against when you make an adjustment.

Realize that Visual Studio 2008 Professional (and above) now comes with integrated Unit Testing (it made use of to be readily available just with the Team System Editions ) and also might appropriate for your demands.

0
2019-05-07 17:58:28
Source

There are numerous it's insane. Crazy excellent, I presume.

  • For the traditional kinds (me ), NUnit is still readily available and also still even more than qualified.
  • For the Microsoft-types, MSTest suffices, yet slow-moving and also confusing contrasted to Nunit. It additionally does not have code insurance coverage without paying the large dollars for the costly variations of Visual Studio.
  • There's additionally MbUnit. It's like NUnit, yet has great attributes like RowTest (run the very same examination with various parameters ) and also Rollback (placed the data source back like you located it after an examination )
  • And ultimately, xUnit.net is the fashionable alternative with some perspective.
  • Oh, and also TestDriven.NET will certainly offer you IDE assimilation for both Nunit and also MBunit.

I'm certain they're all simply great. I would certainly guide far from MSTest however, unless you simply appreciate the ease of having every little thing in one IDE out of package.

Scott Hanselman has a podcast on this really subject.

0
2019-05-07 17:15:12
Source