예제 #1
0
        public void TestLoadedTerritoriesAreUnique()
        {
            var earth = BoardBuilder.LoadNewTerritories();
            var rnd1  = _random.Next(0, 41);
            var rnd2  = _random.Next(0, 41);

            while (rnd1 == rnd2)
            {
                rnd2 = _random.Next(0, 41);
            }
            var territory1 = earth.Territories[rnd1];
            var territory2 = earth.Territories[rnd2];

            Assert.AreNotSame(territory1, territory2);
        }
예제 #2
0
        public void TestAllTerritoriesLoad()
        {
            var territories = BoardBuilder.LoadNewTerritories();

            Assert.AreEqual(42, territories.Territories.Count);
        }