Пример #1
0
        public void Does_coerce_from_BclTypes_to_strings()
        {
            var from = new BclTypes {
                Int     = 1,
                Long    = 2,
                Double  = 3.3,
                Decimal = 4.4m,
            };

            var to = from.TranslateTo <BclTypeStrings>();

            Assert.That(to.Int, Is.EqualTo("1"));
            Assert.That(to.Long, Is.EqualTo("2"));
            Assert.That(to.Double, Is.EqualTo("3.3"));
            Assert.That(to.Decimal, Is.EqualTo("4.4"));
        }
Пример #2
0
        public void Does_coerce_from_BclTypes_to_strings()
        {
            var from = new BclTypes {
                Int = 1,
                Long = 2,
                Double = 3.3,
                Decimal = 4.4m,                
            };

            var to = from.TranslateTo<BclTypeStrings>();
            Assert.That(to.Int, Is.EqualTo("1"));
            Assert.That(to.Long, Is.EqualTo("2"));
            Assert.That(to.Double, Is.EqualTo("3.3"));
            Assert.That(to.Decimal, Is.EqualTo("4.4"));
        }