Isn't this the whole idea of TDD? Write your assertions, then write the code the fulfill it.