Minor style cleanup.

WorldChunkRefactoring
Martin Felis 2023-08-13 21:09:41 +02:00
parent 6c0bff1de1
commit 4839bfcb00
1 changed files with 19 additions and 25 deletions

View File

@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Godot;
using Godot.Collections;
using GoDotTest;
using Xunit;
using Array = System.Array;
//using GodotXUnitApi;
//using Xunit;
namespace GodotComponentTest.tests;
@ -119,10 +113,10 @@ public class HexGridPathFindingTests : TestClass
public void TestHexCost()
{
Assert.Equal(_hexGrid.PathCostDefault, _hexGrid.GetHexCost(new Vector2(1, 1)));
Assert.Equal(0, _hexGrid.GetHexCost(new HexCell(new Vector3 (2, 1, -3))));
Assert.Equal(0, _hexGrid.GetHexCost(new HexCell(new Vector3(2, 1, -3))));
_hexGrid.AddObstacle(new HexCell(1, 1), 1.337f);
Assert.Equal(1.337f, _hexGrid.GetHexCost(new Vector2(1,1)));
Assert.Equal(1.337f, _hexGrid.GetHexCost(new Vector2(1, 1)));
}
[Test]