StringToField() public method

public StringToField ( string from ) : object
from string
return object
        public void To_integer_from_decimal()
        {
            // Arrange
            var c = new StringFormatConverter(typeof(int), "F0");

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

            // Assert
            Assert.AreEqual(1235.0m, result);
        }
        public void To_decimal()
        {
            // Arrange
            var c = new StringFormatConverter(typeof(decimal), "F2");

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

            // Assert
            Assert.AreEqual(1234.57m, result);
        }