"Productivity power tools" allowed for the pretty paste from visual studio
// Haven't figured out how to apply to assembly correctly, but added it as a flag in my base anyway [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] public class BaseCategoryAttribute : CategoryAttribute { } public class FastIntegrationTestAttribute : BaseCategoryAttribute { } public class LongRunningIntegrationTestAttribute : BaseCategoryAttribute { } public class UnitTestAttribute : BaseCategoryAttribute { } public class CoreTestAttribute : BaseCategoryAttribute { } [TestFixture, UnitTest, CoreTest] public class SomeClassTests { // This test has categories TestFixture, UnitTest, CoreTest [Test, CoreTest] public void ShouldDoSomething() { } }
No comments:
Post a Comment