Пример #1
0
        public void GetNumber()
        {
            var calculator = new Calculator();

            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
            string  input    = "4.4";
            decimal expected = 4.4m;
            decimal result   = calculator.GetNumber(input);

            Assert.AreEqual(expected, result);
        }