I have Person.Surname field implemented as a string if I change the implementation of the field to a
- by AndyM
This is me going right back to basics with TDD for learning purposes.
I originally implemented Person.Surname as field of type object (the simplest possible way of passing the test.
I then added a test setting Person.Surname stating that the return value should be a string and set Person.Surname=20.
I 'fixed' the test by changing the…