function test_should_choose_the_right_assertions():void { assertThat(test.assertions, use("hamcrest")); } [Test] public function test_should_use_the_same_level_of_abstraction ():void { assertThat(test.subject, didNotExposePrivates()); assertThat(test.collaborators, didNotViolateDemeter()); } [Test] public function test_should_not_repeat_previous_assertions():void { assertThat(test.assertionCount, between(1,3)); assertThat(test.assertions, everyItem(hasProperties({ description: not(emptyString()) })))); }