Beispiel #1
0
        public void CurrencyFormat()
        {
            var sample = DataType.Sample();

            var formatted = StringFormatter.Currency(sample.Double);

            formatted.Should().Be("$1,032.50");

            formatted = StringFormatter.Currency(sample.Decimal);
            formatted.Should().Be("$12,000.25");

            formatted = StringFormatter.Currency(sample.Long);
            formatted.Should().Be("$100,042.00");
        }