Blog Archives

Is unit testing literal values pointless?

Well, yes. And no.

You shouldn’t be using literal values anyway. You should be using constants. And when you use constants everywhere, there is absolutely no point in testing whether a constant actually has the literal value assigned to it. No sense in testing the compiler. After all,

Read more ›

Posted in Unit Testing
Tags: ,

Show Buttons
Hide Buttons