Exemple #1
0
        public void TestMilesToFeet()
        {
            DistanceConverter converter = new DistanceConverter();

            converter.FromUnit = DistanceConverter.MILES;
            converter.IntoUnit = DistanceConverter.FEET;

            converter.FromDistance = 1.0;
            converter.ConvertToDistance();

            double expectedDistance = 5280;

            Assert.AreEqual(expectedDistance, converter.ToDistance);
        }