Provides conversion from dollars to cents.
Inheritance: FileHelpers.ConverterBase
コード例 #1
0
        public void To_decimal()
        {
            // Arrange
            var c = new CurrencyConverter();

            // Act
            var result = c.StringToField("0000123456");

            // Assert
            Assert.AreEqual(1234.56m, result);
        }
コード例 #2
0
        public void From_decimal()
        {
            // Arrange
            var c = new CurrencyConverter();

            // Act
            var result = c.FieldToString(1234.56m);

            // Assert
            Assert.AreEqual("123456", result);
        }