public void CollCountMistmatch() { var c1 = new Class() { Subject = "Math", AttendingStudents = new List <Student> { new Student() { Name = "Joe" }, new Student { Name = "Joanne", GPA = 61 } } }; var c2 = new Class() { Subject = "Math", AttendingStudents = new List <Student> { new Student() { Name = "Joe" } } }; var comparer = new ClassComparer(); var r = comparer.Compare(c1, c2); }
public void DiffStudents() { var c1 = new Class() { Subject = "Math", AttendingStudents = new List <Student> { new Student() { Name = "Joe" }, new Student { Name = "Joanne", GPA = 61 } } }; var c2 = new Class() { Subject = "Math", AttendingStudents = new List <Student> { new Student() { Name = "Alex" }, new Student { Name = "Suzanne", GPA = 61 } } }; var comparer = new ClassComparer(); var r = comparer.Compare(c1, c2); }