public void ApplyEffect_Charges200DollarsRentWhenFourOwnedByAnotherPlayer()
        {
            Player player1 = new Player("Player 1");

            player1.AddCash(2000);

            Player player2 = new Player("Player 2");

            player2.AddCash(2000);

            Board board = new Board();

            railroadSquare       = (RailRoadSquare)board.GetSquareAtPosition(5);
            railroadSquare.Owner = player1;

            RailRoadSquare railroadSquare2 = (RailRoadSquare)board.GetSquareAtPosition(15);

            railroadSquare2.Owner = player1;

            RailRoadSquare railroadSquare3 = (RailRoadSquare)board.GetSquareAtPosition(25);

            railroadSquare3.Owner = player1;

            RailRoadSquare railroadSquare4 = (RailRoadSquare)board.GetSquareAtPosition(35);

            railroadSquare4.Owner = player1;

            railroadSquare.ApplyEffect(board, player2, 0);
            Assert.AreEqual(1800, player2.CashOnHand);
            Assert.AreEqual(2200, player1.CashOnHand);
        }
        public void ApplyEffect_DoesNotChangePlayersCashOnHandWhenRailroadIsUnowned()
        {
            Player player = new Player("Player 1");

            player.AddCash(2000);

            Board board = new Board();

            railroadSquare = (RailRoadSquare)board.GetSquareAtPosition(5);
            railroadSquare.ApplyEffect(board, player, 0);

            Assert.AreEqual(2000, player.CashOnHand);
        }
        public void ApplyEffect_Charges25DollarsRentWhenOwnedByAnotherPlayer()
        {
            Player player1 = new Player("Player 1");

            player1.AddCash(2000);

            Player player2 = new Player("Player 2");

            player2.AddCash(2000);

            Board board = new Board();

            railroadSquare       = (RailRoadSquare)board.GetSquareAtPosition(5);
            railroadSquare.Owner = player1;

            railroadSquare.ApplyEffect(board, player2, 0);
            Assert.AreEqual(1975, player2.CashOnHand);
            Assert.AreEqual(2025, player1.CashOnHand);
        }
 public void MyTestInitialize()
 {
     railroadSquare = new RailRoadSquare(railroadName);
 }