public void HeShouldContinueMovingInArrowDirection_Back() { // Arrange var testEmptyRules = new TestEmptyRules(); var field = new Field(testEmptyRules); var startCell = field.Cells(3, 3); var arrow1Cell = new ArrowOneWayStraightCell(4, 3); arrow1Cell.SetField("direction", Direction.W); var endCell = field.Cells(5, 3); field.Draw(arrow1Cell); field.SetPirateOnCell(black, startCell); // Act field.SelectPirate(startCell); field.MovePirateTo(black, arrow1Cell); // Assert field.Cells(startCell.Position).Pirates.ShouldContain().Exact(black); field.Cells(arrow1Cell.Position).Pirates.ShouldBeEmpty(); field.Cells(endCell.Position).Pirates.ShouldBeEmpty(); }
public void TestInit() { arrowCell = new ArrowOneWayStraightCell(1, 1); }