public void enemyMoving_enemyFailed_False() { var mockCharacter = new Character(); var mockAnchiornis = new Anchiornis(); var mockTile = new MockTile(mockCharacter, 3, 3, 2, 2); mockTile.creatures = new List <ICreature>() { mockCharacter, mockAnchiornis }; var movement = mockCharacter.Move(mockTile, ICreature.direction.N) as ITile; mockAnchiornis.Move(mockTile, movement, false); bool enemyMoved = movement.creatures.Contains(mockAnchiornis) ? true : false; Assert.False(enemyMoved); }
public void PackMovingFromEnemy_enemyFailedPackMoved_False() { var mockCharacter = new Character(); var mockAnchiornis = new Anchiornis(); var enemyAnchiornis = new Anchiornis(); mockAnchiornis.IncreaseFriendliness(25); mockCharacter.AddToPack(mockAnchiornis); var mockTile = new MockTile(mockCharacter, 3, 3, 2, 2); mockTile.creatures = new List <ICreature>() { mockCharacter, mockAnchiornis, enemyAnchiornis }; var movement = mockCharacter.Move(mockTile, ICreature.direction.N) as ITile; enemyAnchiornis.Move(mockTile, movement, false); bool packMoved = movement.creatures.Contains(mockAnchiornis) ? true : false; bool enemyMoved = movement.creatures.Contains(enemyAnchiornis) ? true : false; Assert.True(packMoved); Assert.False(enemyMoved); }