public void FieldWithCity_BuyField_PlayerDontHaveEnoughtMoney() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 500, new Pawn("Red", 1, 0)); Assert.False(field.BuyField(player)); }
public void FieldWithCity_BuyField() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); Assert.True(field.BuyField(player)); }
public void FieldWithCity_BuyHome_PlayerHaveNotEnoughtMoney_BuyHomeReturnFalse() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); field.BuyField(player); Assert.False(field.BuyHome(player)); }
public void FieldWithCity_BuyField_OwerIsPlayer() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); field.SetOwer(player); Assert.False(field.BuyField(player)); }
public void FieldWithCity_BuyHome_PlayerHaveNotEnoughtMoney_FieldIsEmptyField() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); field.BuyField(player); field.BuyHome(player); Assert.AreEqual(field.GetFieldState, FieldState.EmptyField); }
public void FieldWithCity_BuyHome_PlayerHaveNotEnoughtMoney_FieldCostNotIncrease() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); field.BuyField(player); field.BuyHome(player); Assert.AreEqual(field.FieldCost, 1000); }
public void FieldWithCity_BuyHome_PlayerHaveNotEnoughtMoney_PlayerSpendMony() { var field = new FieldWithCity("Brazylia", 1000, 1000); var player = new Player(1, "", "kamil", 1000, new Pawn("Red", 1, 0)); field.BuyField(player); field.BuyHome(player); Assert.AreEqual(player.Money, 0); }