Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.785 Beiträge
 
#1

Should naming procedures Setup and Teardown be reserved for unit testing?

  Alt 8. Dez 2024, 17:30
I recently came across some code a developer had done where they had named 2 public procedures 'Setup' and 'Teardown', when I fist saw these I instinctively thought of unit tests and thought that class might relate to unit testing. After looking into the code it was apparent that these procedures where meant to be called after an object of the class was created and before the object was freed, but had nothing to do with unit testing.


Even though there are no restrictions on using these words f

Weiterlesen...
  Mit Zitat antworten Zitat