Questions tagged [nunit-2.5.9]

For issues relating creating and running unit tests using NUnit, version 2.5.9.

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

27 questions
1
vote
0 answers

All C# unit test dlls not executed on Jenkins

I am trying to run unit tests from build file using nunit-console-x86.exe. I am reading the dlls from a nunit project file which has 33 entries. On my system all the tests are running, but when the same build file is running through Jenkins, only 15…
Neha
  • 11
  • 2
1
vote
0 answers

Tests stop running on TeamCity after updating test station to Windows 7

We just switched our test station from Windows XP to Windows 7 and unexpected problem appeared. We run tests using NUnit 2.5.9 and at some point during running on Windows XP we were getting warnings from TeamCity: [16:05:27][Step 2/16] 2013-09-20…
inside
  • 3,047
  • 10
  • 49
  • 75
1
vote
1 answer

Mocking IO operations in Nunit using Typemock

I have the following method. public string CreateFile(string path, string fileName) { string fullPath = path + "ExportedFiles\\"; if (Directory.Exists(fullPath)) { DirectoryInfo dir = new DirectoryInfo(fullPath); foreach…
user2435880
  • 71
  • 2
  • 8
1
vote
1 answer

RhinoMocks Testing a Service

I am using Sharp Architechture and Rhino Mocks with NUnit. I have a test service that looks like this public class TestService : ITestService { public TestService(ITestQueries testQueries, IRepository testRepository, …
TheCodeFool
  • 137
  • 1
  • 1
  • 6
0
votes
1 answer

Using NUnit to unit test WCF RIA Services in a Silverlight 4 App

I have recently tried using the Silverlight NUnit Project template (the one from Jamie Cansdale found here) for a Silverlight 4 project that uses WCF RIA 1.0. I seem to be close, but I still cannot get it to work. Here's what I've done Create…
David Moye
  • 701
  • 4
  • 13
0
votes
2 answers

NUnit 2.5.9 and WebAii

I'm attempting to write my own NUnit tests for a Silverlight application using WebAii. I've been attempting to follow a rather detailed blog over at http://borntocode.co.uk/page/Setting-Up-a-WebAii-Test-Project-with-NUnit.aspx however I simply can't…
aslate
  • 63
  • 3
0
votes
1 answer

using NUnit 2 and 3 in the same solution

I have 2 test projects in my solution. One is using NUnit version 2 (integration + SpecsFor) and another version 3.(Unit tests) Running locally this works fine but when I execute the tests as part of a build on TFS I get an error message even though…
Jepzen
  • 2,942
  • 6
  • 40
  • 62
0
votes
1 answer

TeamCity hanged afer test is passed

We run the functional test on TeamCity. The test is passed but hanged and fails after a time out of 1 hour. And TeamCity throws the following error WARN JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled exception in current domain:…
Raj
  • 151
  • 1
  • 14
0
votes
1 answer

How to test WPF components using NUnit?

I am trying to test each components of my WPF application by using NUnit. But how to test the graphical components like button, grid, textblock, richtextbox etc?
itzmebibin
  • 9,199
  • 8
  • 48
  • 62
0
votes
1 answer

How to skip further execution in Nunit test case once particular assert passes

Below is my test case, Public static void SampleTest() { // Pre conditions for both assert 1 and 2 if(condition1) { // Assert 1 } // Pre condition for Assert 2 // Assert 2 } Once condition1 satisfied and assert 1…
0
votes
1 answer

Mock httpcontext.current.request.files

I am implementing nUnit Test case for one of my method called, UploadFile(), some thing like below public void UploadFile(string siteId, string sitePageId) { int fileCount = HttpContext.Current.Request.Files.Count; //Rest of code } so…
CodeGuru
  • 2,722
  • 6
  • 36
  • 52
0
votes
1 answer

Difference between NUnit and NUnit.Runner

What is the difference between NUnit and NUnit.Runner packages?
ahmet
  • 7
  • 3
1
2