Tag Archives: unit-testing

Unit Testing: My problem with assertThat()

I write “ass” a lot while I’m coding.

Posted in Banter, Code | Tagged , , , | 3 Comments

Unit Testing: Why I prefer assertThat()

Consider: [Test] public function null_criteria_should_not_match():void { assertFalse(“passing null should return false”, instance.match(null)); } When reading the test above I have to do a lot of scanning.

Posted in Banter, Code | Tagged , , , | Leave a comment