Пример #1
0
        public void LengthToTypographicLengthImplicitConversion()
        {
            TypographicLength length = 10 * Length.Centimetre;

            Assert.AreEqual(10 * TypographicLength.Centimetre, length);
            Assert.AreNotEqual(10 * Length.Centimetre, 10 * TypographicLength.Centimetre);
        }
        public void ImplicitFromLength()
        {
            var length = 5 * Length.Inch;
            TypographicLength typographicLength = length;

            Assert.That(typographicLength, QuantityIs.EqualTo(5 * TypographicLength.Inch).Within(1e-6));
        }