← Back to team overview

nunit-core team mailing list archive

[Bug 1111590] Re: [Property] attribute doesn't work correctly with [TestCase]

 

There was no explanation as to why you consider this a security issue
and it seems unlikely, so I removed that flag.

** Information type changed from Public Security to Public

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

Title:
  [Property] attribute doesn't work correctly with [TestCase]

Status in NUnit V2 Test Framework:
  New

Bug description:
          [TestCase]
          [Property("ID", "123")]
          public void Test1()
          {
              Assert.AreEqual(1, 1);
          }

          [Test]
          [Property("ID", "124")]
          public void Test2()
          {
              Assert.AreEqual(1, 1);
          }

  Property cannot be retrieved from EventListener class.

  I'm getting my own "ID" property from TestFinished method.
  result.Test.Properties["ID"]
  But this code doesn't work for Test1. For Test2 that's OK.

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


References