NUnit is an open source unit testing framework for Microsoft .NET and Silverlight written in C#. It serves the same purpose as JUnit does in the Java world, and is one of many in the xUnit family.

learn more… | top users | synonyms

2
votes
1answer
34 views

Multiple Services and Test Setup

Class To Test Some methods hidden for clarity ...
8
votes
2answers
95 views

Testing classes

I'm just getting into testing and wanted to see if someone can tell me if I'm writing tests correctly. I'm using C#, NUnit, & Should. This is the class I'm testing: ...
4
votes
2answers
2k views

REST Web Api unit test endpoint validity with NUnit and Moq

I am unit testing that the url that I give to my IRestClient is valid. This client talks to a third party Web Api. I am new to unit testing so please bear with me. ...
2
votes
1answer
278 views

Testing database table creation with NUnit

I'm new to using NUnit and have written a test to check for the existence of a database table. I have the below code that should check whether a new table named NewTable has been created in the ...
4
votes
4answers
3k views

Function for determining triangle type?

A while back I was asked to write some sample code for a job that I was applying for. They wanted a class that had a function that would accept three lengths and return the appropriate type of ...