public void AddUserLineTest() { Twitter target = new Twitter(); // TODO: Initialize to an appropriate value string[] words = null; // TODO: Initialize to an appropriate value target.AddUserLine(words); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void createUserEmptyListTest() { Twitter target = new Twitter(); string userName = "******"; int oldSize = target.userList.Count; target.createUserEmptyList(userName); Assert.AreNotEqual(oldSize, target.userList.Count); }
public void checkUserExistsTest() { Twitter target = new Twitter(); string username = "******"; int expected = 1; int actual; actual = target.checkUserExists(username); Assert.AreEqual(expected, actual); }
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(); }
public void createUserWithListTest() { Twitter target = new Twitter(); string newUser = "******"; int oldSize = target.userList.Count; List<string> followsList = new List<string> {"Alan"}; target.createUserWithList(newUser, followsList); Assert.AreNotEqual(oldSize, target.userList.Count); }
public void loadUserFileTest() { Twitter target = new Twitter(); // TODO: Initialize to an appropriate value string userFile = string.Empty; // TODO: Initialize to an appropriate value target.loadUserFile(userFile); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
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); }