I noticed there the Microsoft.VisualStudio.TestTools.UnitTesting.WorkItemAttribute attribute, available in Visual Studio testing (I use VS 2010 Premium and work items with TFS 2010.)
Labeling a test method with a work item number sounds convenient, but does it really do something? I canโt say if there is any tool support for it at all. I installed it like this:
[WorkItem(25788)] [TestMethod] public void TestSomethingSpecificToABug() { ...
But not magic - I thought, maybe the context menu in the test in the test results window may offer to open a work item, or Team Explorer may have a function to search for tests. MSDN documentation doesn't help either. Why is this attribute useful?
source share