473,722 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUnit question

Hi all,

How can we use "NUnit" in socket programming.
I mean, I'm writing a server program which accepts
connection requests from the clients. I want to test the
number of clients whenever a new connection is
established.

My Server code is :
---------------------------------------------------------------------
private string strHostName;
private IPAddress ipAddHost;
private Socket soketListener;
private int intPortNumber;
private int clients = 0;

public Server(int portNumber)
{
this.intPortNum ber = portNumber;
}

public void StartListening( )
{
strHostName = Dns.GetHostName ();
IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
ipAddHost = ipHostInfo.Addr essList[0];

socketListener. Bind( new IPEndPoint( ipAddHost, intPortNumber ) );
socketListener. Listen( 100 );
socketListener. BeginAccept(
new AsyncCallback( this.OnConnecti onRequest ),socketListene r );
}

private void OnConnectionReq uest(Socket client)
{
clients ++;
}

public int GetClientCount( )
{
return clients;
}

-----------------------------------------------------------------------------
I have tried to use NUnit in the following way.

[SetUp]
public void init()
{
Server server = new Server(portNumb er);
}

[Test]
public void Test()
{

server.StartLis tening();

Socket clientSocket = new Socket(
AddressFamily.I nterNetwork, SocketType.Stre am,
ProtocolType.Tc p );

IPAddress localIp = IPAddress.Parse (ipAddress);
int portNumber = number;
IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;

socketClient.Co nnect(endPoint) ;

Assert.AreEqual (1,server.GetCl ientCount());
}

but test is failing... at "Assert.AreEqua l(1,server.GetC lientCount());
the error message is expected <1> but was<0>

can any one suggest me how can we use NUnit in this situation.
Cheers,

Naveen Mukkelli.
Nov 16 '05 #1
5 4638
Have you try to accept the socket on the server object synchronously?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> escribió en el
mensaje news:62******** *************** ***********@mic rosoft.com...
Hi all,

How can we use "NUnit" in socket programming.
I mean, I'm writing a server program which accepts
connection requests from the clients. I want to test the
number of clients whenever a new connection is
established.

My Server code is :
---------------------------------------------------------------------
private string strHostName;
private IPAddress ipAddHost;
private Socket soketListener;
private int intPortNumber;
private int clients = 0;

public Server(int portNumber)
{
this.intPortNum ber = portNumber;
}

public void StartListening( )
{
strHostName = Dns.GetHostName ();
IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
ipAddHost = ipHostInfo.Addr essList[0];

socketListener. Bind( new IPEndPoint( ipAddHost,
intPortNumber ) );
socketListener. Listen( 100 );
socketListener. BeginAccept(
new AsyncCallback(
this.OnConnecti onRequest ),socketListene r );
}

private void OnConnectionReq uest(Socket client)
{
clients ++;
}

public int GetClientCount( )
{
return clients;
}

-----------------------------------------------------------------------------
I have tried to use NUnit in the following way.

[SetUp]
public void init()
{
Server server = new Server(portNumb er);
}

[Test]
public void Test()
{

server.StartLis tening();

Socket clientSocket = new Socket(
AddressFamily.I nterNetwork, SocketType.Stre am,
ProtocolType.Tc p );

IPAddress localIp = IPAddress.Parse (ipAddress);
int portNumber = number;
IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;

socketClient.Co nnect(endPoint) ;

Assert.AreEqual (1,server.GetCl ientCount());
}

but test is failing... at "Assert.AreEqua l(1,server.GetC lientCount());
the error message is expected <1> but was<0>

can any one suggest me how can we use NUnit in this situation.
Cheers,

Naveen Mukkelli.

Nov 16 '05 #2
Hi,

As I am accepting connections asynchronously in my server application, hence
I would like to test asynchronous behaviour.

I have not tried accepting sockets, synchronously, on the serve object.

Can we test asynchronous connections at all ?

Cheers,

Naveen.

"Carlos J. Quintero [.NET MVP]" wrote:
Have you try to accept the socket on the server object synchronously?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> escribió en el
mensaje news:62******** *************** ***********@mic rosoft.com...
Hi all,

How can we use "NUnit" in socket programming.
I mean, I'm writing a server program which accepts
connection requests from the clients. I want to test the
number of clients whenever a new connection is
established.

My Server code is :
---------------------------------------------------------------------
private string strHostName;
private IPAddress ipAddHost;
private Socket soketListener;
private int intPortNumber;
private int clients = 0;

public Server(int portNumber)
{
this.intPortNum ber = portNumber;
}

public void StartListening( )
{
strHostName = Dns.GetHostName ();
IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
ipAddHost = ipHostInfo.Addr essList[0];

socketListener. Bind( new IPEndPoint( ipAddHost,
intPortNumber ) );
socketListener. Listen( 100 );
socketListener. BeginAccept(
new AsyncCallback(
this.OnConnecti onRequest ),socketListene r );
}

private void OnConnectionReq uest(Socket client)
{
clients ++;
}

public int GetClientCount( )
{
return clients;
}

-----------------------------------------------------------------------------
I have tried to use NUnit in the following way.

[SetUp]
public void init()
{
Server server = new Server(portNumb er);
}

[Test]
public void Test()
{

server.StartLis tening();

Socket clientSocket = new Socket(
AddressFamily.I nterNetwork, SocketType.Stre am,
ProtocolType.Tc p );

IPAddress localIp = IPAddress.Parse (ipAddress);
int portNumber = number;
IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;

socketClient.Co nnect(endPoint) ;

Assert.AreEqual (1,server.GetCl ientCount());
}

but test is failing... at "Assert.AreEqua l(1,server.GetC lientCount());
the error message is expected <1> but was<0>

can any one suggest me how can we use NUnit in this situation.
Cheers,

Naveen Mukkelli.


Nov 16 '05 #3
If you want to use NUnit, or unit testing in general, effectively, then you
really can't directly test your code as it makes calls into the socket
library. That's a valid test, but it's an integration test, not a unit test.

A good unit test is repeatable on any machine, including build machines;
this allows the unit tests to be run during the build process, and to halt
the build if a test fails. The build machines often do not have all the
tools and other infrastructure installed that the development or client
machines have on them, so tests that rely on a particular configuration are
more likely to fail. I like to keep the build machine as pure as possible to
avoid dependency contamination.

That being said, you can unit test your code, but you ought to create a mock
object that mimics the behavior of the socket library. There are various
open source tools, such as NMock, that make this easier. The purpose of the
mock object is to simulate the behavior of the external dependency,
including all possible errors that it can exhibit, so you can test your
code's reaction to those behaviors. The mock object will expose the same API
as the real object, and the code under test does not know which object it is
dealing with. The unit test code creates a mock object and substitutes it
for the "real" object before it runs the test.

There are books and white papers on this subject - I'd suggest googling up
some references and start reading. Once you get the hang of it it isn't
hard.

"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> wrote in
message news:33******** *************** ***********@mic rosoft.com...
Hi,

As I am accepting connections asynchronously in my server application,
hence
I would like to test asynchronous behaviour.

I have not tried accepting sockets, synchronously, on the serve object.

Can we test asynchronous connections at all ?

Cheers,

Naveen.

"Carlos J. Quintero [.NET MVP]" wrote:
Have you try to accept the socket on the server object synchronously?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> escribió en
el
mensaje news:62******** *************** ***********@mic rosoft.com...
> Hi all,
>
> How can we use "NUnit" in socket programming.
> I mean, I'm writing a server program which accepts
> connection requests from the clients. I want to test the
> number of clients whenever a new connection is
> established.
>
> My Server code is :
> ---------------------------------------------------------------------
> private string strHostName;
> private IPAddress ipAddHost;
> private Socket soketListener;
> private int intPortNumber;
> private int clients = 0;
>
> public Server(int portNumber)
> {
> this.intPortNum ber = portNumber;
> }
>
> public void StartListening( )
> {
> strHostName = Dns.GetHostName ();
> IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
> ipAddHost = ipHostInfo.Addr essList[0];
>
> socketListener. Bind( new IPEndPoint( ipAddHost,
> intPortNumber ) );
> socketListener. Listen( 100 );
> socketListener. BeginAccept(
> new AsyncCallback(
> this.OnConnecti onRequest ),socketListene r );
> }
>
> private void OnConnectionReq uest(Socket client)
> {
> clients ++;
> }
>
> public int GetClientCount( )
> {
> return clients;
> }
>
> -----------------------------------------------------------------------------
> I have tried to use NUnit in the following way.
>
> [SetUp]
> public void init()
> {
> Server server = new Server(portNumb er);
> }
>
> [Test]
> public void Test()
> {
>
> server.StartLis tening();
>
> Socket clientSocket = new Socket(
> AddressFamily.I nterNetwork, SocketType.Stre am,
> ProtocolType.Tc p );
>
> IPAddress localIp = IPAddress.Parse (ipAddress);
> int portNumber = number;
> IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;
>
> socketClient.Co nnect(endPoint) ;
>
> Assert.AreEqual (1,server.GetCl ientCount());
> }
>
> but test is failing... at
> "Assert.AreEqua l(1,server.GetC lientCount());
> the error message is expected <1> but was<0>
>
> can any one suggest me how can we use NUnit in this situation.
>
>
> Cheers,
>
> Naveen Mukkelli.
>
>


Nov 16 '05 #4
Hi,

Can we use NMock to simulate concrete classes?.
In my case, I have to a class with no interfaces and virtual methods.
I've got 2 classes A, B, dependent on each other. That means, one
Class A creates many objects of Class B.

For example..

public class DependenceClass
{
private string name = null;
public DependenceClass (string str)
{
this.name = str;
}

public DependenceClass ()
{
}

public void Wish()
{
Console.WriteLi ne("Hello " + this.name );
}
public string GetName()
{
return this.name;
}
public void SetName(string str)
{
this.name = str;
}
}

public class UnderTest
{
private DependenceClass dC = null;
public UnderTest(Depen denceClass dc)
{
this.dC = dc;
}
public string GetName()
{
return this.dC.GetName ();
}
public void SetName(string str)
{
this.dC.SetName (str);
}
}

my test class

[TestFixture]
public class TestClass
{

private DependenceClass dependenceClass = null;

[Test]
public void Test1()
{
IMock mock = new DynamicMock(

typeof(Dependen ceClass));
dependenceClass =

(DependenceClas s)mock.MockInst ance;

mock.ExpectAndR eturn("GetName" ,"Naveen",null) ;
Assert.AreEqual

("Naveen",depen denceClass.GetN ame());
}
The test is failing and the excpetion is : System.Argument Exception, Method
GetName is not Virtual.

How can we test class with no vitual methods and Interfaces.

"David Levine" wrote:
If you want to use NUnit, or unit testing in general, effectively, then you
really can't directly test your code as it makes calls into the socket
library. That's a valid test, but it's an integration test, not a unit test.

A good unit test is repeatable on any machine, including build machines;
this allows the unit tests to be run during the build process, and to halt
the build if a test fails. The build machines often do not have all the
tools and other infrastructure installed that the development or client
machines have on them, so tests that rely on a particular configuration are
more likely to fail. I like to keep the build machine as pure as possible to
avoid dependency contamination.

That being said, you can unit test your code, but you ought to create a mock
object that mimics the behavior of the socket library. There are various
open source tools, such as NMock, that make this easier. The purpose of the
mock object is to simulate the behavior of the external dependency,
including all possible errors that it can exhibit, so you can test your
code's reaction to those behaviors. The mock object will expose the same API
as the real object, and the code under test does not know which object it is
dealing with. The unit test code creates a mock object and substitutes it
for the "real" object before it runs the test.

There are books and white papers on this subject - I'd suggest googling up
some references and start reading. Once you get the hang of it it isn't
hard.

"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> wrote in
message news:33******** *************** ***********@mic rosoft.com...
Hi,

As I am accepting connections asynchronously in my server application,
hence
I would like to test asynchronous behaviour.

I have not tried accepting sockets, synchronously, on the serve object.

Can we test asynchronous connections at all ?

Cheers,

Naveen.

"Carlos J. Quintero [.NET MVP]" wrote:
Have you try to accept the socket on the server object synchronously?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> escribió en
el
mensaje news:62******** *************** ***********@mic rosoft.com...
> Hi all,
>
> How can we use "NUnit" in socket programming.
> I mean, I'm writing a server program which accepts
> connection requests from the clients. I want to test the
> number of clients whenever a new connection is
> established.
>
> My Server code is :
> ---------------------------------------------------------------------
> private string strHostName;
> private IPAddress ipAddHost;
> private Socket soketListener;
> private int intPortNumber;
> private int clients = 0;
>
> public Server(int portNumber)
> {
> this.intPortNum ber = portNumber;
> }
>
> public void StartListening( )
> {
> strHostName = Dns.GetHostName ();
> IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
> ipAddHost = ipHostInfo.Addr essList[0];
>
> socketListener. Bind( new IPEndPoint( ipAddHost,
> intPortNumber ) );
> socketListener. Listen( 100 );
> socketListener. BeginAccept(
> new AsyncCallback(
> this.OnConnecti onRequest ),socketListene r );
> }
>
> private void OnConnectionReq uest(Socket client)
> {
> clients ++;
> }
>
> public int GetClientCount( )
> {
> return clients;
> }
>
> -----------------------------------------------------------------------------
> I have tried to use NUnit in the following way.
>
> [SetUp]
> public void init()
> {
> Server server = new Server(portNumb er);
> }
>
> [Test]
> public void Test()
> {
>
> server.StartLis tening();
>
> Socket clientSocket = new Socket(
> AddressFamily.I nterNetwork, SocketType.Stre am,
> ProtocolType.Tc p );
>
> IPAddress localIp = IPAddress.Parse (ipAddress);
> int portNumber = number;
> IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;
>
> socketClient.Co nnect(endPoint) ;
>
> Assert.AreEqual (1,server.GetCl ientCount());
> }
>
> but test is failing... at
> "Assert.AreEqua l(1,server.GetC lientCount());
> the error message is expected <1> but was<0>
>
> can any one suggest me how can we use NUnit in this situation.
>
>
> Cheers,
>
> Naveen Mukkelli.
>
>


Nov 16 '05 #5
I don't know what all the capabilities of NMock are - you should address
that question to the authors. Usually you use mock objects on interfaces and
base classes and you mock those methods - that would tend to imply the
methods must be virtual.

Quite often using mock objects requires you to rewrite/redesign your code to
make it easier to use. Typically you will define an interface or base class,
derive the real implementation from that, and define a mock object as well
for testing.

"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> wrote in
message news:03******** *************** ***********@mic rosoft.com...
Hi,

Can we use NMock to simulate concrete classes?.
In my case, I have to a class with no interfaces and virtual methods.
I've got 2 classes A, B, dependent on each other. That means, one
Class A creates many objects of Class B.

For example..

public class DependenceClass
{
private string name = null;
public DependenceClass (string str)
{
this.name = str;
}

public DependenceClass ()
{
}

public void Wish()
{
Console.WriteLi ne("Hello " + this.name );
}
public string GetName()
{
return this.name;
}
public void SetName(string str)
{
this.name = str;
}
}

public class UnderTest
{
private DependenceClass dC = null;
public UnderTest(Depen denceClass dc)
{
this.dC = dc;
}
public string GetName()
{
return this.dC.GetName ();
}
public void SetName(string str)
{
this.dC.SetName (str);
}
}

my test class

[TestFixture]
public class TestClass
{

private DependenceClass dependenceClass = null;

[Test]
public void Test1()
{
IMock mock = new DynamicMock(

typeof(Dependen ceClass));
dependenceClass =

(DependenceClas s)mock.MockInst ance;

mock.ExpectAndR eturn("GetName" ,"Naveen",null) ;
Assert.AreEqual

("Naveen",depen denceClass.GetN ame());
}
The test is failing and the excpetion is : System.Argument Exception,
Method
GetName is not Virtual.

How can we test class with no vitual methods and Interfaces.

"David Levine" wrote:
If you want to use NUnit, or unit testing in general, effectively, then
you
really can't directly test your code as it makes calls into the socket
library. That's a valid test, but it's an integration test, not a unit
test.

A good unit test is repeatable on any machine, including build machines;
this allows the unit tests to be run during the build process, and to
halt
the build if a test fails. The build machines often do not have all the
tools and other infrastructure installed that the development or client
machines have on them, so tests that rely on a particular configuration
are
more likely to fail. I like to keep the build machine as pure as possible
to
avoid dependency contamination.

That being said, you can unit test your code, but you ought to create a
mock
object that mimics the behavior of the socket library. There are various
open source tools, such as NMock, that make this easier. The purpose of
the
mock object is to simulate the behavior of the external dependency,
including all possible errors that it can exhibit, so you can test your
code's reaction to those behaviors. The mock object will expose the same
API
as the real object, and the code under test does not know which object it
is
dealing with. The unit test code creates a mock object and substitutes it
for the "real" object before it runs the test.

There are books and white papers on this subject - I'd suggest googling
up
some references and start reading. Once you get the hang of it it isn't
hard.

"Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> wrote in
message news:33******** *************** ***********@mic rosoft.com...
> Hi,
>
> As I am accepting connections asynchronously in my server application,
> hence
> I would like to test asynchronous behaviour.
>
> I have not tried accepting sockets, synchronously, on the serve object.
>
> Can we test asynchronous connections at all ?
>
> Cheers,
>
> Naveen.
>
> "Carlos J. Quintero [.NET MVP]" wrote:
>
>> Have you try to accept the socket on the server object synchronously?
>>
>> --
>>
>> Carlos J. Quintero
>>
>> MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
>> You can code, design and document much faster.
>> http://www.mztools.com
>>
>>
>> "Naveen Mukkelli" <Na************ @discussions.mi crosoft.com> escribió
>> en
>> el
>> mensaje news:62******** *************** ***********@mic rosoft.com...
>> > Hi all,
>> >
>> > How can we use "NUnit" in socket programming.
>> > I mean, I'm writing a server program which accepts
>> > connection requests from the clients. I want to test the
>> > number of clients whenever a new connection is
>> > established.
>> >
>> > My Server code is :
>> > ---------------------------------------------------------------------
>> > private string strHostName;
>> > private IPAddress ipAddHost;
>> > private Socket soketListener;
>> > private int intPortNumber;
>> > private int clients = 0;
>> >
>> > public Server(int portNumber)
>> > {
>> > this.intPortNum ber = portNumber;
>> > }
>> >
>> > public void StartListening( )
>> > {
>> > strHostName = Dns.GetHostName ();
>> > IPHostEntry ipHostInfo = Dns.Resolve(str HostName);
>> > ipAddHost = ipHostInfo.Addr essList[0];
>> >
>> > socketListener. Bind( new IPEndPoint( ipAddHost,
>> > intPortNumber ) );
>> > socketListener. Listen( 100 );
>> > socketListener. BeginAccept(
>> > new AsyncCallback(
>> > this.OnConnecti onRequest ),socketListene r );
>> > }
>> >
>> > private void OnConnectionReq uest(Socket client)
>> > {
>> > clients ++;
>> > }
>> >
>> > public int GetClientCount( )
>> > {
>> > return clients;
>> > }
>> >
>> > -----------------------------------------------------------------------------
>> > I have tried to use NUnit in the following way.
>> >
>> > [SetUp]
>> > public void init()
>> > {
>> > Server server = new Server(portNumb er);
>> > }
>> >
>> > [Test]
>> > public void Test()
>> > {
>> >
>> > server.StartLis tening();
>> >
>> > Socket clientSocket = new Socket(
>> > AddressFamily.I nterNetwork, SocketType.Stre am,
>> > ProtocolType.Tc p );
>> >
>> > IPAddress localIp = IPAddress.Parse (ipAddress);
>> > int portNumber = number;
>> > IPEndPoint endPoint = new IPEndPoint(loca lIp,portNumber) ;
>> >
>> > socketClient.Co nnect(endPoint) ;
>> >
>> > Assert.AreEqual (1,server.GetCl ientCount());
>> > }
>> >
>> > but test is failing... at
>> > "Assert.AreEqua l(1,server.GetC lientCount());
>> > the error message is expected <1> but was<0>
>> >
>> > can any one suggest me how can we use NUnit in this situation.
>> >
>> >
>> > Cheers,
>> >
>> > Naveen Mukkelli.
>> >
>> >
>>
>>
>>


Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1812
by: serge desmedt | last post by:
Hi, Where about to start using Unit Testing for dotNet. I have experimented with the NUnit framework and have the following question: According to the documentation of NUnit , using the console it should be possible to redirect the output to a file using the /out commandline switch, like /out:filename.txt
2
14241
by: d2d | last post by:
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was following examples that came with NUnit and when I tried to compile Nunit test file here is the error i received: ========================================================================
7
1447
by: Alvin Bruney | last post by:
I've a question on unit testing with NUnit. I'm sure I'm missing just a little thing here. Why doesn't NUnit allow me to test a routine with parameter in it like what i want to do is test private string testme(string test) and put my test code in there. So why the emphasis on having me write a specific routine with a void return type and an empty parameter? Is it because its forcing me to write a routine to call testme to make sure it...
2
1313
by: Ray Cassick \(Home\) | last post by:
I have started using this on a regular basis and have a question regarding conditional compilation. I have all my test cases wrapped in an #if/#endif that checks to see if the build is debug or not so when I do a release build I am not compiling in the test cases. This seems to be working all fine and dandy, but I was wondering if there is a way to remove the reference to the nunit assembly for a release build as well.
0
1673
by: Ray Tayek | last post by:
hi, getting a: .\Stdafx.cpp : fatal error C1192: #using failed on 'i: nunit\samples\cpp-sample"' 'The filename, directory name, or volume label syntax is incorrect.' nunit is installed in i"\nunit. does anyone know what the problem here is? any pointers will be appreciated.
6
8369
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 express at home (the labs may have an earlier version). does anyone know how to tell visual studio to use this dll? thanks
20
2020
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. Hence can someone who has used them before share his/her experience on them so that I can get a better idea and make a proper choice ? Any link or suggestions are also welcome. Thanks and Regards, Parag
2
5155
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 (e.g. nunit.util.tests.dll) so the install of NUnit seems OK. I've compiled one of the sample projects (csharp-sample_VS2005). When I do so I get the following warning after a build:
1
1964
by: Gonza | last post by:
Hi group, i'm trying to create tests for my solution, so i have a project with nunit tests. I'm using the data application block as my data access layer, and the problem i'm having is that when i try to run a test that uses the block i get an exception because the block can't read the configuration file (i supose it doesn't know where to look) and therefore can create a connection to the database. Any ideas? Thanks in advance
0
8863
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8739
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9384
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6681
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.