I am running a test with the following attributes [TestCase(“First Count”), Category(“Catalog”)]
Later in TearDown I want to get the value "Catalog". I tried:
var cat = (string)TestContext.CurrentContext.Test.Properties.Get("Category");
But as a result - null I also tried to add [Property("value","Catalog")] to the test attributes Still the same result. How else can you do it?