public void writeSingleUserTest()
 {
     Users test = new Users();
     test.addUser("third");
     test.addStcokForUser("third","AAPL",400);
     test.addStcokForUser("third", "FB", 700);
     //test.writeSingleUserData("ttt.txt", "third");
 }
        public void UsersMethod()
        {
            Users test = new Users();
            test.addUser("hello");
            Console.WriteLine("User:hello's balance: {0}", test.UserDictionary["hello"].cashBalance);
            test.modifyCash("hello", 100, true);
            Console.WriteLine("User:hello's balance: {0}", test.UserDictionary["hello"].cashBalance);

            if (test.UserDictionary.ContainsKey("hello"))
            {
                if (test.addStcokForUser("hello", "AAPL", 100))
                {
                    Console.WriteLine("123");
                    Console.WriteLine("User:hello's STOCK: {0}", test.UserDictionary["hello"].StockShares["AAPL"]);
                }

            }

            test.addStcokForUser("hello", "FB", 500);

            test.addUser("second");
            test.addStcokForUser("second", "AAPL", 400);
            test.writeAllUserData("ttt.txt");
        }
        public void AddTestMethod()
        {
            Users test = new Users();
            test.addUser("hello");
            Console.WriteLine("User:hello's balance: {0}", test.UserDictionary["hello"].cashBalance);
            test.modifyCash("hello", 100, true);
            Console.WriteLine("User:hello's balance: {0}", test.UserDictionary["hello"].cashBalance);

            if (test.UserDictionary.ContainsKey("hello"))
            {
                if (test.addStcokForUser("hello", "AAPL", 100))
                {
                    Console.WriteLine("123");
                    Console.WriteLine("User:hello's STOCK: {0}", test.UserDictionary["hello"].StockShares["AAPL"]);
                }

            }
        }