Exemple #1
0
        public void Codec_CanSetDecimal()
        {
            var input   = NumberConverter.ConvertToDecimal(Any.Decimal());
            var message = Message.Parse(Any.Message());

            message[1][3].Converter.AsDecimal = input;
            message[1][3].Value.Should().Be(input.ToString());
        }
        public string NumberConverter_CanDecodeDecimal(string value)
        {
            var result = NumberConverter.ConvertToDecimal(value);

            return(result == null
                ? null
                : result.Value.ToString(CultureInfo.InvariantCulture));
        }