I know it is possible to change the visibility with:
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("UnitTests")]
namespace Foobar
{
internal class Foo
{
}
}
So, my test project can create a test for the class Foo. The problem is that I have many inner classes, and I do not want to pollute them with this expression assembly. Is there any other way to do this InternalsVisibleTo("UnitTests")for the whole project?
Denr2 source
share