[Test] [TestCategory(Category.A)] [TestCategory(Category.B)] public void Test1() { var cats = TestContext.CurrentContext.Test.Properties["Category"]; foreach (var cat in cats) { TestContext.Out.WriteLine(cat.ToString()); } }