NUnit version: 3.2.0 (from NuGet)
Test execution: Visual Studio adapter
Steps to reproduce:
- Create a test method marked with
[TestCase] and [Property("key", "value")]
- Executed the test
- Inspect the value of
TestContext.Current.Test.Properties - it will be an empty collection, where it should have 1 value
Code example (failing test):
[TestCase(5)]
[Property("Answer", 42)]
public void TestCaseCanAccessItsOwnProperties(int x)
{
Assert.That(TestContext.CurrentContext.Test.Properties.Get("Answer"), Is.EqualTo(42));
}
Previously reported on LaunchPad
This does not appear to be the same bug as #548 or #796.