public void TestTweetingAMessage() { string output = "alan\r\n\t@Alan: If you have a procedure with 10 parameters, you probably missed some.\r\n\t@Alan: Random numbers should not be generated with a method chosen at random.\r\n\r\nmartin\r\n\r\nward\r\n\t@Alan: If you have a procedure with 10 parameters, you probably missed some.\r\n\t@Ward: There are only two hard things in Computer Science: cache invalidation, naming things and off-by-1 errors.\r\n\t@Alan: Random numbers should not be generated with a method chosen at random.\r\n\r\n"; FileProvider provider = new FileProvider(); provider.LoadUsers(); provider.LoadTweets(); string result = provider.DisplayTweets(); Assert.IsTrue(result.Equals(output)); }
private static void KickOff() { try { FileProvider provider = new FileProvider(); provider.LoadUsers(); provider.LoadTweets(); System.Console.WriteLine(provider.DisplayTweets()); System.Console.ReadLine(); } catch (Exception ex) { System.Console.WriteLine(String.Format("Error: {0}", ex.Message)); } }