Is your test framework 'partial trust' friendly?
Is your test framework 'partial trust' friendly?
Submitted by Jonathan de Halleux on Wed, 05/09/2007 - 06:01.Writing code that will run in partial trust is tricky... and writing unit tests for it turns out to be even trickier. Does your favorite unit test framework support partial trust?
After looking on NUnit, MbUnit or VSTT, it did not look like so (if I overlooked this feature, don't hesitate to point it out to me). No magic command line flag or custom attribute to get the work done.
Even more interesting, the test framework assemblies don't have the AllowPartiallyTrustedCallersAttribute... so you can't even use their assertion classes in partial trust as it will trigger a SecurityException... Good stuff.
This posting is provided "AS IS" with no warranties, and confers no rights.
