I have a slightly dumb problem:
I have a large number of unit tests that have method attributes like this:
[TestMethod] [Owner("me")] [Description("It tests something.")] [TestProperty(TC.Name, "Some Test")] [TestProperty(TC.Requirement, "req203")] [TestProperty(TC.Reviewer, "someguy")] [TestProperty(TC.Environment, "MSTest")] [TestProperty(TC.CreationDate, "24.01.2012")] [TestProperty(TC.InternalTcId, "{9221A494-2B31-479D-ADE6-D4773C2A9B08}")] public void TestSomething() { ... }
(If you are interested: these attributes are used to automatically test and cover requirements).
Now, unfortunately, these attributes are in a different order according to most testing methods, which makes it a little dirty to consider and the like. Therefore, I am looking for a way to order them.
Do you know any other way than reordering them manually?
(I was thinking about writing some kind of VS-plugin or so) - I'm just wondering if I'm really the first person with such a desire.
source share