예제 #1
0
        static void Main(string[] args)
        {
            if (args.Length != 2)
            {
                System.Console.WriteLine("Error: Invalid Input... \nPlease enter arguments (1)User file & (2) Twitter file: ");
            }
            else
            {
                Twitter TwitterApp = new Twitter();

                TwitterApp.LoadFiles(args[0], args[1]);
                TwitterApp.PrintTweets();
            }
            //Console.Read();
        }
예제 #2
0
        public void LoadFilesTest()
        {
            Twitter target = new Twitter(); // TODO: Initialize to an appropriate value
            var assembly = typeof(TwitterTest).Assembly;
            var assemblyPath = Path.GetDirectoryName(new Uri(assembly.EscapedCodeBase).LocalPath);

            var userPath = Path.Combine(assemblyPath, "user.txt");
            var tweetPath = Path.Combine(assemblyPath, "tweet.txt");

            target.LoadFiles(userPath, tweetPath);
        }