I'm diving a little bit deeper into using HSMs the past few days. I like to do TDD/BDD in my development so that I am always sure I have working code. I'm having a little bit of trouble seeing how to follow my usual practices when putting together a HSM.
Anyone have any good "rules of thumb" or patterns for doing TDD with these state machines?
If the answer is "draw the state chart first and translate it to code," let me know. :)