Exemplo n.º 1
0
        public void FieldWithCity_PayForStay_PlayerDontHaveEnoughtMoney_PayForStayReturFalse()
        {
            var field  = new FieldWithCity("Brazylia", 1000, 1000);
            var player = new Player(1, "", "kamil", 500, new Pawn("Red", 1, 0));

            field.SetOwer(new Player(2, "", "Kuba", 1000, new Pawn("Red", 1, 0)));
            Assert.False(field.PayForStay(player));
        }
Exemplo n.º 2
0
        public void FieldWithCity_PayForStay_PlayerHaveEnoughtMoney()
        {
            var field  = new FieldWithCity("Brazylia", 1000, 1000);
            var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0));

            field.SetOwer(new Player(2, "", "Kuba", 1000, new Pawn("Red", 1, 0)));
            field.PayForStay(player);
            Assert.AreEqual(player.Money, 0);
        }