Creating a unit test in vs2008 for an object that holds strings?

  • Thread starter Thread starter Andy B
  • Start date Start date
Arne said:
Believe it or not, but I have actually seen getters and setters
being wrong after too much copy paste (it was not C# but that does
not really matter).

As a consequence I am paranoid enough to even make unit tests
for that type of class.

Arne

Well, i have seen setters in legacy code that are longer than my arm
too. In this case Unit tests are definitely called for.

alain
 
Arne said:
Believe it or not, but I have actually seen getters and setters
being wrong after too much copy paste (it was not C# but that does
not really matter).

These bugs should be found by the unit tests for the consumer classes.
 
Ben said:
These bugs should be found by the unit tests for the consumer classes.

Usually will.

And if the consumer class is done by the same team at the same
time, then no big deal.

But another team taking a drop finding the bug 3 months later
will not be pleased.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top