Sample code in framework\'s AssemblyInfo.cs
:
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo
(\"Test.Com
InternalsVisibleTo
could be useful if you need to test sub parts of your API which you don't want to expose.
However, testing through the public API is preferable since it makes refactoring interal APIs easier. Use InternalsVisibleTo
with care and only when appropriate, e.g. the size of the API is significant.