mardi 18 septembre 2018

Classes with no methods should be tested?

Should I test a class with no methods?

Let's say I have a configuration class that only has fields and I add a test that calls each field to see if they are there for example. But I think if one field is missing it would raise a compilation error in one of the calls or the field is not being used. So I think is rather pointless but I want some opinions.

Aucun commentaire:

Enregistrer un commentaire