コード例 #1
0
        public override SyntaxNode VisitMethodDeclaration(MethodDeclarationSyntax node)
        {
            if (node.IsTestMethod() & !node.HasTestCategory(_category))
            {
                Console.WriteLine($"-> Adding {_category} category to method {node.Identifier}");
                return(node.AddCategoryAttribute(_category));
            }

            return(node);
        }