[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 that are made 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 using \u003ccode\u003e[assembly: InternalsVisibleTo("Full.Name.Of.Testing.Assembly")]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the google.apis package is 1.69.0, and multiple older versions are available, including version 1.55.0 which this documentation page covers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVisibleForTestOnly\u003c/code\u003e attribute inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class, which itself inherits from \u003ccode\u003eObject\u003c/code\u003e, providing various inherited members for attribute manipulation.\u003c/p\u003e\n"]]],[],null,[]]