public void ApplicationTest_Readall()
        {
            createalogofMessages();
            string[]             args = {};
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
        public void Applicationtest_ShowHelp()
        {
            createalogofMessages();

            string[]             args = { "?" };
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
        public void Applicationtest_Wall()
        {
            createalogofMessages();

            string[]             args = { "Bob", "Wall", "New York" };
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
        public void Applicationtest_Follow()
        {
            createalogofMessages();

            string[]             args = { "Bob", "Following", "Charlie" };
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
        public void ApplicationTest_Post()
        {
            createalogofMessages();

            string[]             args = { "Charlie", "Posting", "and here is sit broken hearted, spent a penny only farted!" };
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
        public void ApplicationTest_Post_alternative_method()
        {
            //this method will not work in live on the console as the > char is the commend to redirect to a file...
            createalogofMessages();

            string[]             args = { "Charlie", "->", "Alternative method using ->" };
            niceTweetApplication nta  = new niceTweet.niceTweetApplication(args);

            Trace.WriteLine(nta.ToString());
        }
Esempio n. 7
0
 static void Main(string[] args)
 {
     try
     {
         niceTweetApplication nta = new niceTweetApplication(args);
         Console.WriteLine(nta.ToString());
     }
     catch (Exception e)
     {
         Console.Write(e.Message);
     }
 }