コード例 #1
0
        public void TestNextWormholeBetweenStartingSectors_Star_Step1()
        {
            _game.Map = GameMaps.LoadMap(_game, "Star2");
            _game.Map.SetVisibilityToTeam(1, true);

            GameEntity otherEnd;
            var        next = _game.NextWormholeEnd(1, 0, 4, out otherEnd);

            next.ShouldNotBeNull();
            otherEnd.ShouldNotBeNull();

            next.SectorId.ShouldBe(0);
            otherEnd.SectorId.ShouldBe(1);
        }