public void IsTraversable_ContainsMotility_True() { GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N); Assert.IsTrue(edge.IsTraversable(Motility.Land)); }
public void IsTraversable_DoesNotContainMotility_False() { GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N); Assert.IsFalse(edge.IsTraversable(Motility.Burrow)); }
public void IsTraversable_UnconstrainedEdge_True() { GridEdge edge = new GridEdge(1f, Motility.Unconstrained, Vec2.One, Direction.N); Assert.IsTrue(edge.IsTraversable(Motility.Land)); }