Пример #1
0
        public void ConvertToLeaguesWorksCorrectly()
        {
            // Arrange
            const double Millimeters = 11234566d;
            const double Leagues = 2.02206012d;

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

            // Assert
            Assert.IsNotNull(distance);
            Assert.AreEqual(Leagues, Math.Round(distance.ToLeagues(), 8));
        }