private static void AssertLoadFailed(Hero hero, IPersister persister) { bool loadFailed = false; try { persister.LoadHero(hero.Name); } catch (Exception) { loadFailed = true; } Assert.True(loadFailed); }