//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.Pathfinding.Tests;
using MUnique.OpenMU.Pathfinding;
///
/// Tests the .
///
[TestFixture]
internal class NodeComparerTest
{
///
/// Tests if does return the
/// correct value when comparing two different nodes with different costs.
///
[Test]
public void Compare()
{
var node1 = new Node { PredictedTotalCost = 1 };
var node2 = new Node { PredictedTotalCost = 2 };
var comparer = new NodeComparer();
Assert.That(comparer.Compare(node1, node2), Is.Negative);
}
}