public static IEnumerable<string> Get(string key) { var test = TestContext.CurrentContext.Test; IEnumerable<string> ids = new string[] { }; while (test != null) { ids = ids.Concat(test.Metadata[key]); test = test.Parent; } return ids; } }