public void TestSinglePerson() { List <UserEntry> tempList = new List <UserEntry>(); tempList.Add(new UserEntry("TERESSA", "BUNDY", 88)); ReadFile rf = new ReadFile("tests\\onePerson.txt"); rf.GenerateList(); Boolean compareLists = compareUserLists(tempList, rf.GetSortedList()); Assert.IsTrue(compareLists); }
public void TestTwoPeople() { List <UserEntry> tempList = new List <UserEntry>(); tempList.Add(new UserEntry("TERESSA", "BUNDY", 88)); tempList.Add(new UserEntry("ALLAN", "ANDY", 70)); ReadFile rf = new ReadFile("tests\\twoPeople.txt"); rf.GenerateList(); Boolean compareLists = compareUserLists(tempList, rf.GetSortedList()); Assert.IsTrue(compareLists); }
public void TestSameScore() { List <UserEntry> tempList = new List <UserEntry>(); tempList.Add(new UserEntry("TERESSA", "BUNDY", 88)); tempList.Add(new UserEntry("MADISON", "GEORGE", 88)); tempList.Add(new UserEntry("FRANCIS", "SMITH", 85)); tempList.Add(new UserEntry("ALLAN", "ANDY", 70)); ReadFile rf = new ReadFile("tests\\sameScore.txt"); rf.GenerateList(); Boolean compareLists = compareUserLists(tempList, rf.GetSortedList()); Assert.IsTrue(compareLists); }