Ported 'NonPublicMethodWithTestAttributeIssue'.