Ejemplo n.º 1
0
        public void Should_Create_Driver_With_Correct_Properties_Hard_Tires()
        {
            // Arrange & Act
            raceTower.RegisterDriver(enduranceDriverHardTires);

            // Assert
            Assert.AreEqual(enduranceDriverHardTires[1].ToLower(), raceTower.GetDriverInfo()[0].Name);
            Assert.AreEqual(enduranceDriverHardTires[4].ToLower(), raceTower.GetDriverInfo()[0].Car.Tire.Type);
            Assert.AreEqual(Convert.ToDouble(enduranceDriverHardTires[5]), raceTower.GetDriverInfo()[0].Car.Tire.Hardness);
        }