Re: Rakija 1.2.0.0

"Kelly Anderson" <[email protected]> Mon, 17 Mar 2008 15:52:25 -0600
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
On Mon, Mar 17, 2008 at 1:32 PM, Gary Evans <[email protected]> wrote:
>  I've finally had time to update my data-driven parameterized test and
> fixture extension - I've changed the syntax of the parameterized tests to
> be:
>
>  [ParameterizedTest]
>  [InlineData("MySpecificTestCase", new object[] {3, "something"})
>  [InlineData("MyOtherSpecificTestCase", new object[] {4, "something else"})
>  [PropertyData("MyTestProperty")]
>  public void MyTest(int someInt, string someString)
>  {
>  // ...
>  }
>
>  public IList<ParameterizedTestData> MyTestProperty
>  {
>  get
>  {
>  // return a list of ParameterizedTestData instances.
>  }
>  }
>
>  The extension is up on www.taumuon.co.uk/rakija I've not received much
> feedback yet, any is gratefully received :)
>
>  cheers,
>  Gary

Wonderful work Gary. Maybe no feedback is a sign you've done it right
:-) That's kind of my viewpoint for now, although I only briefly
looked at it. Can you think of a way to make it more type safe? Also,
by using generics, it won't work for 1.1, does that bother you?

This question is more for Charlie than Gary, but Charlie, would this
meet your definition of type safe that you were talking about earlier?
Specifically, I'm asking about the object[] parameters... I know the
name of the property wouldn't meet what you're asking for.

-Kelly

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/