Re: unit testing with NUnit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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]" <janij@xxxxxxxxxxxxxxxxxxxxxx> ???
news:%23wTTJGXiFHA.1444@xxxxxxxxxxxxxxxxxxxx ???...
> 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
> janij@xxxxxxxxxxxxxxxxxxxxxx
> http://www.saunalahti.fi/janij/
>
>


.



Relevant Pages

  • Re: Focussed Product
    ... > but also stick to market standards for the languages and features. ... Yeah, but that can be said of Delphi, IMO. ... > making investing in ECO very risky right now IMHO. ...
    (borland.public.delphi.non-technical)
  • ANN: Dew Research releases support for Delphi 2007!
    ... trial version for Delphi 2007 and support for Delphi 2007 ... Other features include extensive set vectorized mathemathical ... MtxVec and thus taking advantage of its processing power. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Object TreeView is Missing !!!
    ... > A major reason for sticking with Delphi is preservation of my biggest ... circumvent those missing features, can be better written. ... Joanna Carter ... TeamBUG support for UK-BUG ...
    (borland.public.delphi.non-technical)
  • Re: Borland/DevCO has lost its innovative power
    ... Borland/DevCO is a business. ... Folks talk about all the features Delphi should have and how dead it ... Folks just assume that what they want is what everyone wants. ...
    (borland.public.delphi.non-technical)
  • Re: Late majority
    ... Doesn't Visual Studio 2005 have guidelines also? ... Yes, VS2005 has all those features you mention, unfortunately. ... One feature mentioned, "Class Modelling," was as ... old versions of Delphi. ...
    (borland.public.delphi.non-technical)