The solution is to add integration testing,
for (i=1, i<13, i++) { assert.Equal(t, i, StringToMonth(MonthToString(i))) }
Did you mean property testing?