[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field)]public class VisibleForTestOnly:Attribute
Marker Attribute to indicate a Method/Class/Property has been made more visible for purpose of testing.
Mark the member as internal and make the testing assembly a friend using
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute, which is used to mark classes, methods, properties, or fields that have been made more visible specifically for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute is designed to be used in conjunction with the \u003ccode\u003eInternalsVisibleTo\u003c/code\u003e attribute, to make members internal and then visible to a specific testing assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute inherits from the base \u003ccode\u003eAttribute\u003c/code\u003e class and offers access to many inherited members for custom attribute management, including methods for getting custom attributes, checking for definitions, and managing metadata.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation is part of the Google.Apis.Testing namespace, found within the Google.Apis.Core.dll assembly, covering versions from 1.50.0 up to the latest, 1.69.0.\u003c/p\u003e\n"]]],[],null,[]]