public void TestReadString()
 {
     var runner = new TextParser();
     var tempString = "this";
     var parsedString = runner.Parse(tempString);
     Assert.AreEqual(tempString, parsedString);
 }
 public void ParseWithDelimeters()
 {
     var runner = new TextParser();
     var listString = @"first, second, / \ + = . , & third";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(3, parsedList.Count);
     Assert.AreEqual(parsedList[1], "second");
 }
 public void ParseUniqueList()
 {
     var runner = new TextParser();
     var listString = "we're coding coding coding we're";
     var parsedList = runner.ParseSortedList(listString);
     Assert.AreEqual(2, parsedList.Count);
     Assert.AreEqual(parsedList[1], "we're");
 }
 public void ParseStringsWithApostraphe()
 {
     var runner = new TextParser();
     var listString = "we're coding";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(2, parsedList.Count);
     Assert.AreEqual(parsedList[0], "we're");
 }
 public void ParseList()
 {
     var runner = new TextParser();
     var listString = "first second third";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(parsedList.Count, 3);
     Assert.AreEqual(parsedList[1], "second");
 }
 static void Main(string[] args)
 {
     // iterate through arguments
     for (int i = 0; i < args.Length; i++)
     {
         if (File.Exists(args[i])) // Checks to see if the file really exists
         {
             InputReader reader = new InputReader();
             TextParser parser = new TextParser();
             OutputPrinter printer = new OutputPrinter();
             printer.printOutputList(parser.ParseSortedList(reader.readFile(args[i])), args[i].ToString());
         }
     }
 }