public void CheckClassRoomValues() { List <ClassRoom> zero = new List <ClassRoom>(); List <ClassRoom> one = new List <ClassRoom>(); List <ClassRoom> two = new List <ClassRoom>(); List <ClassRoom> three = new List <ClassRoom>(); List <ClassRoom> four = new List <ClassRoom>(); List <ClassRoom> five = new List <ClassRoom>(); List <ClassRoom> six = new List <ClassRoom>(); List <ClassRoom> seven = new List <ClassRoom>(); foreach (ClassRoom c in tc.FetchClassRooms()) { switch (c.RequestMatch) { case 0: zero.Add(c); break; case 1: one.Add(c); break; case 2: two.Add(c); break; case 3: three.Add(c); break; case 4: four.Add(c); break; case 5: five.Add(c); break; case 6: six.Add(c); break; case 7: seven.Add(c); break; default: break; } } Assert.AreEqual(zero.Count, 2); Assert.AreEqual(one.Count, 2); Assert.AreEqual(two.Count, 2); Assert.AreEqual(three.Count, 2); Assert.AreEqual(four.Count, 2); Assert.AreEqual(five.Count, 2); Assert.AreEqual(six.Count, 2); Assert.AreEqual(seven.Count, 2); }