Exemplo n.º 1
0
        public void Adjust_Simple()
        {
            var pattern = new NumberPattern {
                FormatString = "#,##0"
            };

            Assert.AreEqual(12345, pattern.Adjust(12345));
        }
Exemplo n.º 2
0
        public void Adjust_ValueRange()
        {
            var pattern = new NumberPattern
            {
                MinValue     = 10000,
                Count        = "other",
                FormatString = "00 K"
            };

            Assert.AreEqual(12, pattern.Adjust(12345));
        }