unit testing with NUnit

  • Thread starter Thread starter Edwin Yip
  • Start date Start date
E

Edwin Yip

Dear all,

coding a test classes for classes being tested is really boring, is there
any tool can generate 'test cases'?
 
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
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
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
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
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 :)
 
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 said:
Hello!


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
(e-mail address removed)
http://www.saunalahti.fi/janij/

NUnitPartner--Test Case Generation http://www.freewebs.com/edwinyeah/
 
Back
Top