Ejemplo n.º 1
0
        public void FormatNonNumber()
        {
            NumberFormatter fmt = new NumberFormatter();

            Assert.Throws <ArgumentException>(() => fmt.Format("not a number"));
        }
Ejemplo n.º 2
0
        public void FormatNullValue()
        {
            NumberFormatter fmt = new NumberFormatter();

            Assert.Throws <ArgumentNullException>(() => fmt.Format(null));
        }