public void CanBeSoldTest_LandsWithHousesCantBeSold()
        {
            Land landTest = new Land("id", "Rue de la paix", Color.Green, 300, new int[] { 50, 100, 140, 250, 300, 450 }, 200);

            landTest.BuildHouse();
            Assert.IsFalse(landTest.CanBeSold);
        }
        public void BuildHouseTest()
        {
            Board board    = new Board();
            Land  landTest = new Land("id", "Rue de la paix", Color.Green, 300, new int[] { 50, 100, 140, 250, 300, 450 }, 200, board);

            board.Add(landTest);
            Player p0 = new Player(0, "p0", 500);

            landTest.Owner = p0;

            landTest.BuildHouse();
            Assert.AreEqual(1, landTest.NumberOfHouses);
            Assert.AreEqual(500 - 200, p0.Money);
        }
        public void IsHouseBuildable_TrueWhenInMonopolyOnlyForLowestNumberOfHouses()
        {
            Board board     = new Board();
            Land  landTest1 = new Land("id1", "Rue de la paix", Color.Green, 300, new int[] { 50, 100, 140, 250, 300, 450 }, 200, board);

            board.Add(landTest1);
            Land landTest2 = new Land("id2", "2e Rue de la paix", Color.Green, 300, new int[] { 50, 100, 140, 250, 300, 450 }, 200, board);

            board.Add(landTest2);
            Player p0 = new Player(0, "p0", 500);

            landTest1.Owner = p0;
            landTest2.Owner = p0;
            landTest1.BuildHouse();

            Assert.IsFalse(landTest1.IsHouseBuildable());
            Assert.IsTrue(landTest2.IsHouseBuildable());
        }