By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,836 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,836 IT Pros & Developers. It's quick & easy.

unit testing with NUnit

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.