[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 as more visible for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute allows you to make internal members accessible to a designated testing assembly by using the \u003ccode\u003eInternalsVisibleTo\u003c/code\u003e attribute in your assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class, and is applicable to various target types including classes, methods, properties, and fields.\u003c/p\u003e\n"],["\u003cp\u003eThe page includes a variety of \u003ccode\u003eGoogle.Apis\u003c/code\u003e versions, and you can navigate to each version to see the code and documentation corresponding to that particular version.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides links to relevant methods that are inherited from the \u003ccode\u003eAttribute\u003c/code\u003e and \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]