Questions tagged [nunit-2.6.2]

4 questions
1
vote
0 answers

Prevent NUnit from executing test setup method from another class?

I've got an odd question for which Google has proven barren: I've got a project in .net with ~20 classes that all have tests in them. One of the classes has common test setup code, although a few of the classes have their own TestFixtureSetup that…
1
vote
1 answer

Repository test doesn't return expected number of entities

Note > The number of records in the Country Table: 36 records. My code : [TestFixture] public class CountriesControllerTest { Mock countryRepository; Mock unitOfWork; …
Football-Is-My-Life
  • 1,407
  • 7
  • 18
  • 35
1
vote
1 answer

NUnit 2.6.2 TestContext.CurrentContext always null

I'm trying to use the TestContext.CurrentContext of NUnit 2.6.2 but it's always null. What I would like is to have an output with the result of tests, but if I run the following code I always get a NullReferenceException in the TearDown method. All…
Iridio
  • 9,213
  • 4
  • 49
  • 71
0
votes
3 answers

Visual studio 2010: Nunit test case fails in debug mode but passes in run mode

I'm having a weird problem with Visual Studio 2010 Ultimate: One of my Nunit(2.6.2) test cases is failing in the debug mode but passing in the run mode, as if we had completely different code paths for the two scenarios. Is this a known bug? or is…
h9uest
  • 10,958
  • 3
  • 18
  • 24