Can you add your code?
Testing equality for custom types in a list can be difficult. The built in equality tests for list can't evaluate the custom type, each of the types properties, without an extension. You can do this with a couple loops and or LINQ or add your own equality check to the classroom model. If you add your code, or example, we can help better as it will be situational.