示例#1
0
        public void TestRentForTwoRailRoadOwnerIs50()
        {
            readingRailroad.LandedOnBy(playerOneId);
            pennsylvaniaRailroad.LandedOnBy(playerOneId);

            pennsylvaniaRailroad.LandedOnBy(playerTwoId);
            Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1450));
        }
示例#2
0
        public void TestRentForThreeRailroadsOwnedIs100()
        {
            readingRailroad.LandedOnBy(playerOneId);
            pennsylvaniaRailroad.LandedOnBy(playerOneId);
            boRailroad.LandedOnBy(playerOneId);

            readingRailroad.LandedOnBy(playerTwoId);
            Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1400));
        }
示例#3
0
        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);
        }
示例#4
0
        public void TestRentForOneRailroadOwnerIs25()
        {
            readingRailroad.LandedOnBy(playerOneId);
            readingRailroad.LandedOnBy(playerTwoId);

            Assert.That(banker.GetBalanceFor(playerTwoId), Is.EqualTo(1475));
        }