Is it possible to disable InternalsVisibleTo
for production & acceptance testing?
Whilst I would like to be able to poke internals at design time, I don't really want these exposed at higher level testing.
You can add the attribute in a preprocessor directive:
#if(DEBUG)
[assembly:InternalsVisibleTo("SomeAssembly")]
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With