Exemplo n.º 1
0
        public void PointsCalculator_RemovePointsIfSand()
        {
            Driver  driver  = new F1("cobaille", "Muscle Car", 20);
            Segment segment = new Segment("S turn", GroundType.sand);

            driver.Performence = 50;
            driver.PointsCalculator(driver, segment);

            Assert.AreEqual(30, driver.Performence);
        }
Exemplo n.º 2
0
        public void PointsCalculator_AddPointsIfAsphalt()
        {
            Driver  driver  = new F1("cobaille", "Muscle Car", 20);
            Segment segment = new Segment("S turn", GroundType.asphalt);

            driver.Performence = 50;
            driver.PointsCalculator(driver, segment);

            Assert.AreEqual(80, driver.Performence);
        }