public void Host_without_UserSessionManager_configured_should_throw_exception() { var model = new ExampleModel1(); try { model.Validate(); Assert.Fail("Should throw exception"); } catch (Exception ex) { return; } }