Exemplo n.º 1
0
        public void ConvertToChainsWorksCorrectly()
        {
            // Arrange
            const double Millimeters = 112345d;
            const double Chains = 5.58463573d;

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

            // Assert
            Assert.IsNotNull(distance);
            Assert.AreEqual(Chains, Math.Round(distance.ToChains(), 8));
        }