[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\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute is used to mark classes, methods, properties, or fields as being more visible specifically for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eMembers marked with \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e should be made internal, and the testing assembly should be designated as a friend assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class, which in turn inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this attribute is \u003ccode\u003eGoogle.Apis.Testing\u003c/code\u003e, and it is contained within the \u003ccode\u003eGoogle.Apis.Core.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the document is 1.69.0, with versions ranging from 1.50.0 all the way to 1.69.0 being documented.\u003c/p\u003e\n"]]],[],null,[]]