Ejemplo n.º 1
0
        public void DidEnemyWin_IfEnemyWin_ReturnFalse()
        {
            //Arrange
            MyGame enemy = new MyGame();

            User newEnemy = new User();

            newEnemy.IsGamer  = true;
            newEnemy.UserName = "******";

            Clan enemyClan = new Clan();

            enemyClan.ClanName = "The Worst";
            newEnemy.ClanInfo  = enemyClan;
            enemy.CurrentUser  = newEnemy;

            //Act
            User winner = new User();

            winner.IsGamer  = true;
            winner.UserName = "******";

            Clan newEnemyClan = new Clan();

            newEnemyClan.ClanName = "Rodrigus";
            newEnemy.ClanInfo     = newEnemyClan;


            bool DidEnemyWin =
                enemy.DidEnemyWin(newEnemy);

            //Assert
            Assert.IsFalse(DidEnemyWin);
        }