public void SortedNameFileIsWritten() { SorterProgram sorterProgram = new SorterProgram(fileName); sorterProgram.DoSortingWork(); if (!File.Exists(System.IO.Directory.GetCurrentDirectory() + "\\sorted-names-list.txt")) { Assert.Fail("File Does Not Exist"); } }
private List <String> GetNames(bool sort) { SorterProgram sorterProgram = new SorterProgram(fileName); if (sort) { sorterProgram.DoSortingWork(); } else { sorterProgram.JustParseNames(); } return(sorterProgram.GetNames()); //Made it so because CollectionAssert.AreEqual DOES NOT like complex classes. }