← Back to team overview

nunit-core team mailing list archive

[Bug 792466] [NEW] TestContext MethodName

 

Public bug reported:

Currently, TestContext has the property TestName which contains the name
of the test displayed in the gui. This is the method name only if the
test has no parameters. If TestCaseData is used, it is the name set.
This is quite good, but I want to reract in the SetUp and also in the
TearDown in some cases a little bit different, so the name of the method
is important, not the one of the test case data.

So I see a demand for a additiona propertiy named MethodName

** Affects: nunit-3.0
     Importance: Undecided
         Status: New


** Tags: feature testcontext

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/792466

Title:
  TestContext MethodName

Status in NUnit Test Framework:
  New

Bug description:
  Currently, TestContext has the property TestName which contains the
  name of the test displayed in the gui. This is the method name only if
  the test has no parameters. If TestCaseData is used, it is the name
  set. This is quite good, but I want to reract in the SetUp and also in
  the TearDown in some cases a little bit different, so the name of the
  method is important, not the one of the test case data.

  So I see a demand for a additiona propertiy named MethodName


Follow ups

References