Guest User

Untitled

a guest
Sep 22nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. 1) Create a simple String calculator with a method int Add(string numbers)
  2. a)The method can take 0, 1 or 2 numbers, and will return their sum (for an empty string it will return 0) for example "" or "1" or "1,2"
  3. b) Start with the simplest test case of an empty string and move to 1 and two numbers
  4. c) Remember to solve things as simply as possible so that you force yourself to write tests you did not think about
  5. d) Remember to refactor after each passing test
Add Comment
Please, Sign In to add comment