yep
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Gameboard.ShogiUI.BoardState.Pieces;
|
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using PathFinding;
|
using PathFinding;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
@@ -12,22 +11,21 @@ namespace Gameboard.ShogiUI.UnitTests.PathFinding
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Maths()
|
public void Maths()
|
||||||
{
|
{
|
||||||
|
var result = PathFinder2D<IPlanarElement>.IsPathable(
|
||||||
var result = PathFinder2D<Piece>.IsPathable(
|
|
||||||
new Vector2(2, 2),
|
new Vector2(2, 2),
|
||||||
new Vector2(7, 7),
|
new Vector2(7, 7),
|
||||||
new Vector2(1, 1)
|
new Vector2(1, 1)
|
||||||
);
|
);
|
||||||
result.Should().BeTrue();
|
result.Should().BeTrue();
|
||||||
|
|
||||||
result = PathFinder2D<Piece>.IsPathable(
|
result = PathFinder2D<IPlanarElement>.IsPathable(
|
||||||
new Vector2(2, 2),
|
new Vector2(2, 2),
|
||||||
new Vector2(7, 7),
|
new Vector2(7, 7),
|
||||||
new Vector2(0, 0)
|
new Vector2(0, 0)
|
||||||
);
|
);
|
||||||
result.Should().BeFalse();
|
result.Should().BeFalse();
|
||||||
|
|
||||||
result = PathFinder2D<Piece>.IsPathable(
|
result = PathFinder2D<IPlanarElement>.IsPathable(
|
||||||
new Vector2(2, 2),
|
new Vector2(2, 2),
|
||||||
new Vector2(7, 7),
|
new Vector2(7, 7),
|
||||||
new Vector2(-1, 1)
|
new Vector2(-1, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user