← Back to team overview

nunit-core team mailing list archive

Re: [Bug 790708] [NEW] [feature] Add default names for TestCaseSource and ValueSource

 

Please explain further... at first glance it seems that using the name
of the test method as the name of the attribute source would cause
a compilation error.

For example:

  int[] SomeMethod = new int[] { 1, 2, 3};

  [TestCaseSource] // Defaults to "SomeMethod"
  public void SomeMethod(int x)
  {
    ...
  }

But really, I'm guessing you had something else in mind.

Charlie

On Tue, May 31, 2011 at 7:08 AM, Ed Pavlov
<790708@xxxxxxxxxxxxxxxxxx>wrote:

> Public bug reported:
>
> Using the name of the test method as a default for
> TestCaseSourceAttribute and ValueSourceAttribute helps avoid errors
> during refactoring with refactoring tools. Also it reduces the
> likelihood of mistyping.
>
> ** Affects: nunitv2
>     Importance: Undecided
>         Status: New
>
>
> ** Tags: feature
>
> ** Tags added: feature
>
> --
> You received this bug notification because you are the registrant for
> NUnit V2.
> https://bugs.launchpad.net/bugs/790708
>
> Title:
>  [feature] Add default names for TestCaseSource and ValueSource
>

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/790708

Title:
  [feature] Add default names for TestCaseSource and ValueSource

Status in NUnit V2 Test Framework:
  New

Bug description:
  Using the name of the test method as a default for
  TestCaseSourceAttribute and ValueSourceAttribute helps avoid errors
  during refactoring with refactoring tools. Also it reduces the
  likelihood of mistyping.


References