How to Unit Test an Abstract Class

added by DotNetKicks
6/25/2020 6:44:37 PM

399 Views

The second approach is to test only the concrete classes in the hierarchy: Student and Professor. In this case, you will only have two test classes, StudentTests and ProfessorTests, but you will have to duplicate tests related to the GetSignature() method. So, which approach is better and why?


0 comments