ModelTableOutputter's use should be restricted to IngredientQuantityModel. This will make the class cleaner and avoid needing to cater for every possibility of property type. It can be made generic in future if required.
Rename class to IngredientTableOutputter
Refactor it so that it just outputs the explicit properties of IngredientQuantityModel on each line instead of using reflection
expected and actual should remove the Unit column and move the unit in to the same string as the quantity
ModelTableOutputter
's use should be restricted toIngredientQuantityModel
. This will make the class cleaner and avoid needing to cater for every possibility of property type. It can be made generic in future if required.IngredientTableOutputter
IngredientQuantityModel
on each line instead of using reflectionexpected
and actual should remove the Unit column and move the unit in to the same string as the quantity