I figure now is as good a time as any to try my second test.
So, now I have my 2nd test and it is failing. It might not feel like it, but this is good. Very good!
It’s the rhythm of TDD – write a failing test, make it work using the simplest way possible, then refactor (i.e. tidy up) the code.
I reckon I know how to fix up this code.
Public Function i2r(i As Integer) As String
If i = 1 Then
i2r = "I
i2r = "II
Two passing tests! I’m on a roll. Now, let's add some more tests.