public void SetCorrectNewValues_When_MovingDown() { // Arrange var down = 4; var color = HeroColor.red; var stubKnife = new Mock <IKnife>(); var fakeHero = new FakeAbstractHero(color, stubKnife.Object); var currentPosition = fakeHero.PositionX; // Act fakeHero.Move(down); // Assert Assert.AreEqual(currentPosition + 1, fakeHero.PositionX); }
public void SetCorrectNewValues_WhenMovingRight() { // Arrange var right = 2; var color = HeroColor.red; var stubKnife = new Mock <IKnife>(); var fakeHero = new FakeAbstractHero(color, stubKnife.Object); var currentPosition = fakeHero.PositionY; // Act fakeHero.Move(right); // Assert Assert.AreEqual(currentPosition + 1, fakeHero.PositionY); }