Ejemplo n.º 1
0
        public void DECIMAL_WhenDecimalSeparatorIsPeriod_ScriptsCorrectly()
        {
            setToItalianUsingCommaDecimalSeparator();

            Decimal baseData = 1.5M;
            object  data     = baseData;

            Assert.AreEqual("1.5", FieldScripting.formatDecimal(data), "we expect to have . as the decimal separator despite the set culture.");
        }