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"); }
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"); }