Esempio n. 1
0
        public void ConvertToFurlongsWorksCorrectly()
        {
            // Arrange
            const double Millimeters = 1123456d;
            const double Furlongs = 5.58466555d;

            // Act
            var distance = new Distance(Millimeters);

            // Assert
            Assert.IsNotNull(distance);
            Assert.AreEqual(Furlongs, Math.Round(distance.ToFurlongs(), 8));
        }