473,396 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

unit testing with NUnit

Dear all,

coding a test classes for classes being tested is really boring, is there
any tool can generate 'test cases'?
Nov 17 '05 #1
5 2071
Edwin,
coding a test classes for classes being tested is really boring, is there
any tool can generate 'test cases'?


Only Borland's Delphi 2005 comes into my mind. And yes, it does support C#
despite the name.

There sure are other tools, but they are not familiar to me.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 17 '05 #2
And how about Visual Studio 2005?
--
Marinus Holkema

http://marinusholkema.blogspot.com/
"Jani Järvinen [MVP]" wrote:
Edwin,
coding a test classes for classes being tested is really boring, is there
any tool can generate 'test cases'?


Only Borland's Delphi 2005 comes into my mind. And yes, it does support C#
despite the name.

There sure are other tools, but they are not familiar to me.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 17 '05 #3
Hello!
And how about Visual Studio 2005?


Yes, Visual Studio 2005 does support unit testing, but I wouldn't say it is
NUnit. However, please correct me if I'm wrong here, I just haven't had
enought time to test these features of VS. Rather I just wanted to point out
a tool (Delphi) that I know for sure supports NUnit.

Then again, on further investigation I found that there's also a tool called
TestDriven.NET which appears to be free:

http://www.testdriven.net/Default.aspx?tabid=41

This is probably something that Edwin was after. Remember that there could
be many more such tools, this is on one of them.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 17 '05 #4
Hi All,
I heard that Delphi 2005 contains such a tool, but is dosen't help me :( and
I evaluated testDriven.net before, but I couldn't find such a feature that
can generate the test case skeleton for a given mehtod, classes or
namesapce, tell me if If I was missing somehting.

in fact, I searched the Internet with keywork "generate test case" with
google, but I didn't find any tool that is help indeed.

anyway, after posting this message, I've started working by myself on a tool
that can do this for me, it's not finished, but for example, for method

public void Update(PortInfo myPort) {...}

it can already generate the code like bellow:

namespace Adex.InterBaseDAL.Test {
using System;
using Adex.InterBaseDAL;
using Adex.Model;
public class TestPort {

private void TestUpdate() {
Port __Port = new Port();
PortInfo __myPort = new PortInfo();
__PortInfo.port_code = "port_code";
__PortInfo.port_name = "port_name";
__PortInfo.country_code = "country_code";
__PortInfo.us_code = "us_code";

__Port.Update(__myPort);
}
}
}
the generated source:
1. imports all necessary namespaces
2. assign values for memebers of parameters of object ( i don't know the
one included in delphi 2005 can do this or not?)
3. assign values for all parameters of anytype
4.currently supports c#, vb.net, jscript and managed c++
5. and in my plan ,some more features are going to be implemented.

and BTW, I develope this tool with CodeDOM, and I want to support
delphi.net, can anyone tell me how to get the GeneratorProvider for
delphi.net if I don't have delphi.net installed?
and I can this tool NUnitPartner :)

"Jani J?vinen [MVP]" <ja***@removethis.dystopia.fi> ???
news:%2****************@TK2MSFTNGP10.phx.gbl ???...
Hello!
And how about Visual Studio 2005?
Yes, Visual Studio 2005 does support unit testing, but I wouldn't say it

is NUnit. However, please correct me if I'm wrong here, I just haven't had
enought time to test these features of VS. Rather I just wanted to point out a tool (Delphi) that I know for sure supports NUnit.

Then again, on further investigation I found that there's also a tool called TestDriven.NET which appears to be free:

http://www.testdriven.net/Default.aspx?tabid=41

This is probably something that Edwin was after. Remember that there could
be many more such tools, this is on one of them.

--
Regards,

Mr. Jani J?vinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 17 '05 #5
Well, finally I created the too for me self, the tool is also released to
public, use for free
check
http://www.freewebs.com/edwinyeah/

"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> ???
news:%2****************@TK2MSFTNGP10.phx.gbl ???...
Hello!
And how about Visual Studio 2005?
Yes, Visual Studio 2005 does support unit testing, but I wouldn't say it

is NUnit. However, please correct me if I'm wrong here, I just haven't had
enought time to test these features of VS. Rather I just wanted to point out a tool (Delphi) that I know for sure supports NUnit.

Then again, on further investigation I found that there's also a tool called TestDriven.NET which appears to be free:

http://www.testdriven.net/Default.aspx?tabid=41

This is probably something that Edwin was after. Remember that there could
be many more such tools, this is on one of them.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/


NUnitPartner--Test Case Generation http://www.freewebs.com/edwinyeah/
Nov 17 '05 #6

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

Similar topics

6
by: Liza K. | last post by:
can we do unit testing like checking the functionality of button in Mic-ACT? Please provide me the solution. I need urgent help. Liza
1
by: serge | last post by:
I've started researching on Unit Testing and I must admit I had never heard of Unit Testing until a couple of months ago. Obviously I am interested in Unit Testing Stored Procedures. I read the...
14
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
2
by: Curtis Justus | last post by:
Hi, I've been searching for solutions to two issues that are undoubtedly common to everybody. The first is how do my team and I adequately perform unit testing. The second is how can I measure...
2
by: Naveen Mukkelli | last post by:
Hi, I'm writing a client/server application using C#. The server accepts connecitons asynchronously, using BeginAccept/EndAccept. Is there any way we can write some unit tests(NUnit) to test...
16
by: Greg Roberts | last post by:
Hi I want to place the tests needed in the code using attributes. There seems to be enough code snippets around for me to cover this. e.g. // Test cases, run these here on the function and...
6
by: Droopy | last post by:
Hi, I want to add unit tests in my application using NUnit. At first, I thought to add unit tests in the class that is tested, enclosed in a conditional attribute to remove these unit tests from...
4
by: Peter Rilling | last post by:
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system?
7
by: Diffident | last post by:
Hello All, Can anyone please suggest me a good unit testing tool. I have seen NUnit but not sure on how I can use it to test my methods which involve session variables, viewstate variables,...
4
by: Dat AU DUONG | last post by:
Hi, I am new to Unit testing, could you tell me where I could find information (hopefully step by step) and what is the benefit of unit testing. I am a sole developer in a company, therefore I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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 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.