@Ignore("Remove to run test") @Test public void noNameGiven() { String input = null; String expected = "One for you, one for me."; assertEquals(expected, twofer.twofer(input)); }
String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } }
Twofer { String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } } }
Twofer { String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } }  }
Twofer { String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } }   }
Twofer { String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } }    }