public void _1_6_IsProjectionOfCurrentMazeEleEqualToFarthestMazeEle_DirectionUp_ReturnFalse() { Direction direction = Direction.Up; Vector2 currentMouseOnMazeElement = new Vector2(5, 5); Vector2 currentFarthestMazeElementIndex = new Vector2(5, 6); IMouse mouse = GetMouseMock(currentMouseOnMazeElement); IFarthestMazeElement farthestMazeElement = GetFarthestMazeElement(currentFarthestMazeElementIndex); bool isProjectionOfCurrentMazeEleEqualToFarthestMazeEle = ProjectionOfVectors.isProjectionOfCurrentMazeEleEqualToFarthestMazeEle(farthestMazeElement, mouse, direction); Assert.AreEqual(isProjectionOfCurrentMazeEleEqualToFarthestMazeEle, false); }
public void _1_11_IsProjectionOfCurrentMazeEleEqualToFarthestMazeEle_DirectionDown_ReturnTrue() { Direction direction = Direction.Down; Vector2 currentMouseOnMazeElement = new Vector2(6, 13); Vector2 currentFarthestMazeElementIndex = new Vector2(7, 13); IMouse mouse = GetMouseMock(currentMouseOnMazeElement); IFarthestMazeElement farthestMazeElement = GetFarthestMazeElement(currentFarthestMazeElementIndex); bool isProjectionOfCurrentMazeEleEqualToFarthestMazeEle = ProjectionOfVectors.isProjectionOfCurrentMazeEleEqualToFarthestMazeEle(farthestMazeElement, mouse, direction); Assert.AreEqual(isProjectionOfCurrentMazeEleEqualToFarthestMazeEle, true); }
public void _1_4_IsProjectionOfCurrentMazeEleEqualToFarthestMazeEle_DirectionLeft_Returntrue() { Direction direction = Direction.Left; Vector2 currentMouseOnMazeElement = new Vector2(-6, -5); Vector2 currentFarthestMazeElementIndex = new Vector2(-6, 6); IMouse mouse = GetMouseMock(currentMouseOnMazeElement); IFarthestMazeElement farthestMazeElement = GetFarthestMazeElement(currentFarthestMazeElementIndex); bool isProjectionOfCurrentMazeEleEqualToFarthestMazeEle = ProjectionOfVectors.isProjectionOfCurrentMazeEleEqualToFarthestMazeEle(farthestMazeElement, mouse, direction); Assert.AreEqual(isProjectionOfCurrentMazeEleEqualToFarthestMazeEle, true); }
private bool DidCurrentMazeEleRewound(Direction processDirection) { return(!ProjectionOfVectors.isProjectionOfCurrentMazeEleEqualToFarthestMazeEle(farthestMazeEleFromLastMouseClickMazeEle, mouse, processDirection)); }