Beispiel #1
0
        private static void AssertLoadFailed(Hero hero, IPersister persister)
        {
            bool loadFailed = false;

            try
            {
                persister.LoadHero(hero.Name);
            }
            catch (Exception)
            {
                loadFailed = true;
            }
            Assert.True(loadFailed);
        }