public void test_bank_owns_purchase()
        {
            Player newPlayer1 = new Player("player1", 1500);
            Player newPlayer2 = new Player("player2", 1500);

            TradeableProperty theTradeProp = new TradeableProperty();
            theTradeProp.setOwner(ref newPlayer1);
            //this will throw error as prop should not be availble
            try
            {
                theTradeProp.purchase(ref newPlayer2);
            }
            catch (ApplicationException e)
            {
                StringAssert.Contains("The property is not available from purchase", e.ToString());
            }
        }
        public void test_player_purchase()
        {
            Player play = new Player("player1", 1500);
            TradeableProperty tradeProp = new TradeableProperty();
            //this will throw error as prop should not be availble
            try
            {
                tradeProp.purchase(ref play);

            }
            catch (ApplicationException)
            {
                Assert.Fail();
            }
            Assert.IsTrue(tradeProp.getOwner() == play);
        }