Article:
  Agile User Interface Development
Subject:   smart object/thin view model
Date:   2004-11-29 06:52:41
From:   ipreuss
Response to: smart object/thin view model

You can't test that "view code contains no business logic". But you certainly can be quite sure that it doesn't contain business logic without having to write tests.


And no, TDD doesn't say "you can't trust any code your aren't testing". Actually it explicitely says to not test code that "cannot possibly break", i.e. simple getters or setters.


Last but not least, TDD is a tool, not a dogma.