Beispiel #1
0
        public void CanCreateGridWithMultipleNodes()
        {
            // Arrange
            var want = SetupZoneMap.SetupThreeByThreeGrid();

            // Act
            var grid = ZoneMap.NewGridFromVector2(new Vector2(3f, 3f));
            var got  = grid.MapGrid;

            // Assert
            Assert.Equal(want.Length, got.Length);
            SetupZoneMap.AssertGridMapEqual(want, got);
        }