nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03432
[Bug 1111590] [NEW] [Property] attribute doesn't work correctly with [TestCase]
*** This bug is a security vulnerability ***
Public security bug reported:
[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.
** Affects: nunitv2
Importance: Undecided
Status: New
** Information type changed from Public to Public Security
--
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
Follow ups
References