Ejemplo n.º 1
0
        public void UnsavedValue()
        {
            var mappedValue = _type.StringToObject("0");

            Assert.That(mappedValue, Is.EqualTo(0m));
            Assert.IsTrue(_type.IsEqual(mappedValue, 0m), "'0' in the mapping file should have been converted to a 0m");
        }
Ejemplo n.º 2
0
        public void UnsavedValue()
        {
            DecimalType type        = (DecimalType)NHibernateUtil.Decimal;
            object      mappedValue = type.StringToObject("0");

            Assert.AreEqual(0m, mappedValue);
            Assert.IsTrue(type.IsEqual(mappedValue, 0m), "'0' in the mapping file should have been converted to a 0m");
        }