public void MarksMapSpaceFillsMapCorrectlyInclusive() { var headLocation = new MapLocation(50, 50); var newLocation = new MapLocation(50, 54); var fillValue = 1; var inclusive = true; var map = new Map(gameConfig.MapConfig); var mapMarker = new MapMarker(map); var incrementor = new MapLocation(0, 1); map[headLocation] = -1; mapMarker.MarkArea(headLocation, newLocation, fillValue, inclusive); Assert.Equal(map[newLocation], 0); Assert.Equal(map[headLocation], -1); for (MapLocation i = headLocation + incrementor; !i.SameAs(newLocation); i += incrementor) { Assert.Equal(map[i], fillValue); } }