Unit tests are almost a better implementation of a Spec than code is.
You know what you expect to happen.
Unit tests have saved me when refactoring code - does this code still behave as it was expected to? Yes - phew!
Unit tests are almost a better implementation of a Spec than code is.
You know what you expect to happen.
Unit tests have saved me when refactoring code - does this code still behave as it was expected to? Yes - phew!