Esempio n. 1
0
        public void TestConsoleApp2()
        {
            ConsoleApp2.ConsoleApp2 v2 = new ConsoleApp2.ConsoleApp2();
            int     res = v2.Execute();
            decimal res = v2.Execute();
            bool    res = v2.Execute();
            string  res = v2.Execute();

            Assert.AreEqual(0, 0, true, " ", res);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            ConsoleApp2.ConsoleApp2 v2 = new ConsoleApp2.ConsoleApp2();
            v2.Execute();

            int      i     = 10;
            decimal  x     = 12.2m;
            bool     flag  = true;
            string   chain = "1245784";
            DateTime date  = DateTime.MinValue;

            i = Convert.ToInt32(chain);
            Console.WriteLine("The value of i is: {0}", i);
            Console.WriteLine("The value of x is: {0:C}", x);
            Console.WriteLine("The value of flag is: " + flag.ToString());
            Console.WriteLine("The value of chain: " + chain);
            Console.WriteLine("Teh value of date: " + date.ToShortDateString());
            Console.ReadKey();
        }