I've used NUnit before, but I've never had this problem.
I am trying to test a web service.
I've written my tests, decorated the fixture, and the tests and
everything compiles, but when I load the DLL into NUnit, none of the
tests load.
The console output :
NUnit version 2.2.9
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 .NET
Version: 2.0.50727.42
Tests run: 0, Failures: 0, Not run: 0, Time: 0.000 seconds
The GUI just highlights the assembly with yellow.
Any help would be greatly appreciated.
My test code:
namespace Tests.TrailerList
{
using NUnit.Framework;
[TestFixture]
class TrailerListTests
{
private TrailerListCriteria tlc;
public TrailerListTests() { }
[SetUp]
public void Init()
{
tlc = new TrailerListCriteria();
tlc.Scac = "ZUMQ";
tlc.Site = "0198";
tlc.StartDate = new DateTime(2002, 7, 23);
tlc.EndDate = new DateTime(2004, 7, 29);
}
[Test]
public void TestTrailerListDS()
{
TrailerListWS tl = new TrailerListWS();
DataSet ds = tl.GetTrailerListDS(tlc);
Assert.IsNotNull(ds);
Assert.AreEqual(233, ds.Tables[0].Rows.Count);
}
[Test]
public void TestTrailerList()
{
TrailerListWS tl = new TrailerListWS();
TrailerRow[] Rows;
Rows = tl.GetTrailerList(tlc);
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
[Test]
public void TestColumnList()
{
TrailerListWS tl = new TrailerListWS();
Column[] Rows;
Rows = tl.GetColumnList();
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
} 2 2725
The class has to be public.
j wrote:
I've used NUnit before, but I've never had this problem.
I am trying to test a web service.
I've written my tests, decorated the fixture, and the tests and
everything compiles, but when I load the DLL into NUnit, none of the
tests load.
The console output :
NUnit version 2.2.9
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 .NET
Version: 2.0.50727.42
Tests run: 0, Failures: 0, Not run: 0, Time: 0.000 seconds
The GUI just highlights the assembly with yellow.
Any help would be greatly appreciated.
My test code:
namespace Tests.TrailerList
{
using NUnit.Framework;
[TestFixture]
class TrailerListTests
{
private TrailerListCriteria tlc;
public TrailerListTests() { }
[SetUp]
public void Init()
{
tlc = new TrailerListCriteria();
tlc.Scac = "ZUMQ";
tlc.Site = "0198";
tlc.StartDate = new DateTime(2002, 7, 23);
tlc.EndDate = new DateTime(2004, 7, 29);
}
[Test]
public void TestTrailerListDS()
{
TrailerListWS tl = new TrailerListWS();
DataSet ds = tl.GetTrailerListDS(tlc);
Assert.IsNotNull(ds);
Assert.AreEqual(233, ds.Tables[0].Rows.Count);
}
[Test]
public void TestTrailerList()
{
TrailerListWS tl = new TrailerListWS();
TrailerRow[] Rows;
Rows = tl.GetTrailerList(tlc);
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
[Test]
public void TestColumnList()
{
TrailerListWS tl = new TrailerListWS();
Column[] Rows;
Rows = tl.GetColumnList();
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
}
D'OH!
thanks!!!
wfa...@gmail.com wrote:
The class has to be public.
j wrote:
I've used NUnit before, but I've never had this problem.
I am trying to test a web service.
I've written my tests, decorated the fixture, and the tests and
everything compiles, but when I load the DLL into NUnit, none of the
tests load.
The console output :
NUnit version 2.2.9
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 .NET
Version: 2.0.50727.42
Tests run: 0, Failures: 0, Not run: 0, Time: 0.000 seconds
The GUI just highlights the assembly with yellow.
Any help would be greatly appreciated.
My test code:
namespace Tests.TrailerList
{
using NUnit.Framework;
[TestFixture]
class TrailerListTests
{
private TrailerListCriteria tlc;
public TrailerListTests() { }
[SetUp]
public void Init()
{
tlc = new TrailerListCriteria();
tlc.Scac = "ZUMQ";
tlc.Site = "0198";
tlc.StartDate = new DateTime(2002, 7, 23);
tlc.EndDate = new DateTime(2004, 7, 29);
}
[Test]
public void TestTrailerListDS()
{
TrailerListWS tl = new TrailerListWS();
DataSet ds = tl.GetTrailerListDS(tlc);
Assert.IsNotNull(ds);
Assert.AreEqual(233, ds.Tables[0].Rows.Count);
}
[Test]
public void TestTrailerList()
{
TrailerListWS tl = new TrailerListWS();
TrailerRow[] Rows;
Rows = tl.GetTrailerList(tlc);
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
[Test]
public void TestColumnList()
{
TrailerListWS tl = new TrailerListWS();
Column[] Rows;
Rows = tl.GetColumnList();
Assert.IsNotNull(Rows);
Assert.AreEqual(233, Rows.Length);
}
}
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Rilling |
last post by:
My development team is using VS.NET with VSS integration. They are able to
check in and out from within VS.NET. We also use NUnit for testing our
libraries. Currently our entire solution is...
|
by: Klas Mellbourn |
last post by:
I have several assemblies, in separate dll:s, each with nunit tests
embedded. Every assembly requires its own config file.
I would like to run all nunit tests on the same command line. Like this:
...
|
by: Sky Kim |
last post by:
Hi, all.
I've know NUnit for a while, now I try to use it.
Most of application I develope is data base driven.
I want to test data layer most with may input and checking the result, then
compare...
|
by: geoffblanduk_nospam |
last post by:
I have an NUnit test plan with well over 500 tests.
I now need to produce a test plan document for these tests -
documenting them one by one with Word is a painfull task.
I was thinking that...
|
by: Greg Bacon |
last post by:
I have two C# projects: a production project and NUnit tests for it.
I've recently added a test that causes a call into a registered COM
component, and now the test fails with a TypeLoadException...
|
by: Erik |
last post by:
Hi!
When running NUnit tests against my ASP.NET application I want the values in
the web.config to be loaded, otherwise connectionstrings and other
configurations won't be availible and the...
|
by: Ray Tayek |
last post by:
hi, i am preparing to teach a class in c++ and would like to intoduce
some unit testing. i can make unit tests in c# using this dll and nant
from the command line.
i am using visual c++ 2005...
|
by: Parag |
last post by:
Hi,
I am trying to figure out best testing tool for my project. I have
narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
used neither and I have to use only one of them....
|
by: JohnGoogle |
last post by:
Hi,
I'm a newbie so sorry if there is a simple answer to this! I'm using C#
in Visual Studio Express at the moment.
I've downloaded NUnit v 2.2.8 and can load and run the tests they
supply...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |