Minor style cleanup.
parent
6c0bff1de1
commit
4839bfcb00
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue