Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }