public void TestRentForTwoRailRoadOwnerIs50() { readingRailroad.LandedOnBy(playerOneId); pennsylvaniaRailroad.LandedOnBy(playerOneId); pennsylvaniaRailroad.LandedOnBy(playerTwoId); Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1450)); }
public void TestRentForThreeRailroadsOwnedIs100() { readingRailroad.LandedOnBy(playerOneId); pennsylvaniaRailroad.LandedOnBy(playerOneId); boRailroad.LandedOnBy(playerOneId); readingRailroad.LandedOnBy(playerTwoId); Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1400)); }
public void RailroadLandedOn_WhenPlayerOwnsOne_ShouldCharge25DollarsForRent() { PropertyGroup railroads = new PropertyGroup("Railroads"); Space reading = new Railroad("Reading Railroad", 200, 25, railroads); Space penn = new Railroad("Pennsylvania Railroad", 200, 25, railroads); Space bAndO = new Railroad("B & O Railroad", 200, 25, railroads); Space shortLine = new Railroad("Short Line", 200, 25, railroads); reading.LandedOnBy(horse); reading.LandedOnBy(car); Assert.Equal(975, car.Bank); }
public void TestRentForOneRailroadOwnerIs25() { readingRailroad.LandedOnBy(playerOneId); readingRailroad.LandedOnBy(playerTwoId); Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1475)); }