public void Return_EmptyCollection_For_Origin_Same_As_Destination() { var origin = BoardCoordinate.For(1, 1); var destination = BoardCoordinate.For(1, 1); var target = new PathMaker(origin, destination); Assert.IsFalse(target.GetPathToDestination().Any()); }
public void Return_EmptyCollection_For_Origin_Same_As_Destination() { var origin = BoardCoordinate.For(1, 1); var destination = BoardCoordinate.For(1, 1); var target = new PathMaker(origin, destination); Assert.IsFalse(target.GetPathToDestination().Any()); }
public void Return_Single_Point_For_Single_Move() { var origin = BoardCoordinate.For(4, 8); var destination = BoardCoordinate.For(4, 7); var target = new PathMaker(origin, destination); var path = target.GetPathToDestination(); Assert.IsTrue(path.First().Matches(4, 7)); }
public void Return_Single_Point_For_Single_Move() { var origin = BoardCoordinate.For(4, 8); var destination = BoardCoordinate.For(4, 7); var target = new PathMaker(origin, destination); var path = target.GetPathToDestination(); Assert.IsTrue(path.First().Matches(4, 7)); }
public void Return_7_Spaces() { var target = new PathMaker(BoardCoordinate.For(1, 1), BoardCoordinate.For(8, 1)); Assert.AreEqual<int>(7, target.GetPathToDestination().Count()); }
public void Return_7_Spaces() { var target = new PathMaker(BoardCoordinate.For(1, 1), BoardCoordinate.For(8, 1)); Assert.AreEqual <int>(7, target.GetPathToDestination().Count()); }