Esempio n. 1
0
        static void Main(string[] args)
        {
            StringCalculator sc = new StringCalculator();

            int result = sc.Add(args[0]);

            Console.WriteLine(result);
        }
        public void Add_EmptyString_ReturnsZero()
        {
            StringCalculator sc = new StringCalculator();

            int result = sc.Add("");

            Assert.AreEqual(0,result);
        }
        public int SuperAdd(string input)
        {
            StringCalculator sc = new StringCalculator();

            return sc.Add(input) + 1;
        }