public void TestDealSell() { //Arrange Player p1 = new Player(100); RealState r = new RealState(50, 5); //Act r.Deal(p1); //Assert Assert.IsTrue(r.OwnerIs(p1)); Assert.AreEqual(50, p1.Balance); }
public void TestDealRent() { //Arrange Player p1 = new Player(100); Player p2 = new Player(0); RealState r = new RealState(50, 5, owner: p2); //Act r.Deal(p1); //Assert Assert.AreEqual(95, p1.Balance); Assert.AreEqual(5, p2.Balance); }