Be able to test printCurrentDate function without changing the method signature.
- Test the code with doubles using a library.
- Test the code with doubles created by you.
func (printDate PrintDate) PrintCurrentDate() {
today := printDate.calendar.today()
printDate.printer.printLine(today.String())
}
How to use TBD to generate the doubles.
How to build a Mock and Stub manually.
TBD
TBD
Luis Rovirosa @luisrovirosa
Jordi Anguela @jordianguela