public void TestLoadGameIdOutOfRange()
        {
            var gameSource = new GameSourceFromResources(new BinaryFormatter());

            int maxId = gameSource.GetMetaInfoOfAllGames().Select(m => m.ID).Max();

            Assert.ThrowsException <ArgumentOutOfRangeException>(() => gameSource.GetGame(maxId + 1));
        }
        public void TestLoadGameIdInRange()
        {
            var serializer = new BinaryFormatter();
            var gameSource = new GameSourceFromResources(serializer);

            foreach (var expectedGame in GetAllGames(serializer))
            {
                var game = gameSource.GetGame(expectedGame.MetaInfo.ID);
                game.AssertEqual(expectedGame);
            }
        }