← Back to team overview

nunit-core team mailing list archive

[Bug 1233073] [NEW] Wrong TestCase name in case of params in test method

 

Public bug reported:

Consider following example:

    [TestCase("Default", "Remoting", "Linq", "Protobuf.net")]
    [TestCase("Default", "WPF")]
    [TestCase("Default")]
    public void TestMergeSubsystem(string sourceProfileName, params string[] mergeList)
    {
    }

It is expected to produce following test cases:

TestMergeSubsystem("Default","Remoting","Linq","Protobuf.net")
TestMergeSubsystem("Default","WPF")
TestMergeSubsystem("Default")

However NUnit GUI shows following nodes, which is not convenient:

TestMergeSubsystem("Default","Remoting","Linq","Protobuf.net")
TestMergeSubsystem("Default",System.String[])
TestMergeSubsystem("Default")

(Compare second row)

** Affects: nunitv2
     Importance: Undecided
         Status: New

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

Title:
  Wrong TestCase name in case of params in test method

Status in NUnit V2 Test Framework:
  New

Bug description:
  Consider following example:

      [TestCase("Default", "Remoting", "Linq", "Protobuf.net")]
      [TestCase("Default", "WPF")]
      [TestCase("Default")]
      public void TestMergeSubsystem(string sourceProfileName, params string[] mergeList)
      {
      }

  It is expected to produce following test cases:

  TestMergeSubsystem("Default","Remoting","Linq","Protobuf.net")
  TestMergeSubsystem("Default","WPF")
  TestMergeSubsystem("Default")

  However NUnit GUI shows following nodes, which is not convenient:

  TestMergeSubsystem("Default","Remoting","Linq","Protobuf.net")
  TestMergeSubsystem("Default",System.String[])
  TestMergeSubsystem("Default")

  (Compare second row)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1233073/+subscriptions


Follow ups

References