Beispiel #1
0
        public void CanTestRate_16to19()
        {
            //Arrange
            YoungDrivers eighteen = new YoungDrivers(18);

            //Act
            double expected = 228;
            double actual   = eighteen.MonthlyInsuranceRate;

            Console.WriteLine($"{eighteen.MonthlyInsuranceRate}");

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
 public void InvalidAge_OutOfRangeExceptionThrown()
 {
     //Arrange
     YoungDrivers tooYoung = new YoungDrivers(15);
 }