public void OnAuthenticate_True_Deny_Unrestricted() { LoginTest unit = new LoginTest(); try { unit.OnAuthenticate_True(); } catch (TypeInitializationException) { // ms 2.0 - depending on the test run-order the HttpRuntime may throw } }