Tags » NUnit

Curious case of handling exception with Unit Testing - NUnit

In continuation to my previous post, we will explore how to handle the exceptions with NUnit. We will also uncover some of the interesting aspects during this. 287 more words

NUnit

NUnit - Simple example Roy Osherove way

In this post we will see an NUnit implementation example for a Calculator Class. We have written a very simple method to add two integers using the method name add(..). 223 more words

NUnit

NUnit & Moq - Setting a return value for a method call

Following on from my last post NUnit & Moq – Asserting a method is called I am now going to detail in an example how you can set-up a Mocked object and then have a particular value returned when you execute a particular method on the Mocked object. 375 more words

C#

NUnit & Moq - Asserting a method is called

Some people can find using a Mocking framework when writing unit tests tricky when they first start to do this so I thought I’d create some posts with examples.  320 more words

C#

The Best Open Source UNIT Testing Tools (Award Winning Tools)

The Best Open Source UNIT Testing Tools (Award Winning Tools)

The industry’s original set of awards dedicated to software test automation has crowned this year’s industry leading tools, resources and practitioners with automation’s top honor. 270 more words

NSubstitute - Capturing Arguments Passed To A Function

Consider the situation where you are writing a unit test and need to find out what the value of an argument was that was passed to a function. 171 more words

.Net