????????????TDD(2)
???????????? ???????[ 2014/1/17 11:30:54 ] ????????TDD ????????
????AnswerGenerator??????????á?AnswerGeneratorForTest??????????á???????????????????????????
??????????Guesser????????????????????
public class Guesser
{
public string AnswerNumber { get; private set; }
public Guesser(IAnswerGenerator generator)
{
AnswerNumber = generator.Generate();
}
public string Guess(string inputNumber)
{
...
}
}
[TestClass]
public class GuesserTest
{
private Guesser guesser;
[TestInitialize]
public void Init()
{
guesser = new Guesser(new AnswerGeneratorForTest());
}
...
}
???????????????????л??????????????????AnswerGeneratorForTest??????????Guesser?????????????????ε??????????????1???
??????????????????AnswerGenerator?????????
????To-Do-List:
?????2?????
???????????
?????????
???????????
????????2???
????OK???????
??????1??С??????????????????????“С??”????ж??
??????2?????????????????????????????
??????3???????????????????????????Щ?????????
?????????????????е?TDD??о??????TDD?????????
??????1??????????????
??????2?????????е???????????
??????3?????ЩСС??????
??????4?????????е?????????????????
??????5?????????????????????????????
??????6??????????????????1~5С??Χ??????????????Story??
???????????и???????????????????С?????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11