public void TestCourseRemoveStudent() { Course english = new Course("English"); Student misho = new Student("Misho"); english.AddStudent(misho); english.Remove(misho); Assert.AreEqual(0, english.StudentsCount, "Student count is different!"); }
public void TestCourseAddStudent() { Student misho = new Student("Misho"); Course english = new Course("English"); english.AddStudent(misho); int studentCount = 1; Assert.AreEqual(studentCount, english.StudentsCount, "Student count is different"); }
public void TestCourseGetStudents() { //how to test this Course english = new Course("English"); Student misho = new Student("Misho"); english.AddStudent(misho); List<Student> testList = new List<Student>(); testList.Add(misho); Assert.AreEqual(testList[0], english.Students[0], "Students in course are not the same"); //CollectionAssert.AreEqual(testList, english.Students, //"Students in course are not the same"); }