Exemplo n.º 1
0
        public void Should_format_string(string format, string mask)
        {
            var expected = string.Format(Consts.CultureEnUS, mask, 1.7578m);

            var instance = new NZD(1.7578m);
            var actual   = instance.ToString(format, Consts.CultureEnUS);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Should_convert_to_string(decimal value)
        {
            var expected = $"NZ$ {value:0.00}";

            var instance = new NZD(value);
            var actual   = instance.ToString();

            Assert.AreEqual(expected, actual);
        }