????????????TDD(1)
???????????? ???????[ 2014/1/16 10:49:02 ] ???????????????? ???????? TDD
??????????????μ?????CASE????
[TestMethod]
public void should_return_4a0b_when_input_numbers_all_figures_and_positions_are_right()
{
var inputNumber = "2975";
var actual = new Guesser().Guess(inputNumber);
Assert.AreEqual("4a0b"?? actual);
}
[TestMethod]
public void should_return_2a2b_when_input_numbers_all_figures_right_and_2_positions_right()
{
var inputNumber = "2957";
var actual = new Guesser().Guess(inputNumber);
Assert.AreEqual("2a2b"?? actual);
}
[TestMethod]
public void should_return_0a4b_when_input_numbers_all_figures_right_and_no_positions_right()
{
var inputNumber = "9257";
var actual = new Guesser().Guess(inputNumber);
Assert.AreEqual("0a4b"?? actual);
}
[TestMethod]
public void should_return_0a0b_when_input_number_all_figures_and_positions_wrong()
{
var inputNumber = "1348";
var actual = new Guesser().Guess(inputNumber);
Assert.AreEqual("0a0b"?? actual);
}
????????????CASE...
??????
???·???
??????????????????
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