private static bool IsFieldReferencedByTest(FieldDeclarationSyntax field) { var identifier = field.GetNodeIdentifier(); var testCaseAttributes = GetTestCaseSourceAttributes(field); return(testCaseAttributes.Any(attribute => IsIdentifierReferencedByTest(attribute, identifier))); }