Ejemplo n.º 1
0
        public void kilometersToMiles()
        {
            double kilometers = 26.2;

            Assert.AreEqual(16.28, Calculator.KilometersToMiles(kilometers));
            kilometers = 33.6;
            Assert.AreEqual(20.88, Calculator.KilometersToMiles(kilometers));
            kilometers = -44.44;
            Assert.AreEqual(0, Calculator.MilesToKilometers(kilometers));
        }