示例#1
0
        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");
            }
        }
示例#2
0
        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.
        }