예제 #1
0
 public void should_return_4A0B_when_all_number_exactly_match_answer()
 {
     var guessNumber = new GuessNumber("5678");
     var result = guessNumber.Validate("5678");
     Assert.AreEqual("4A0B", result);
 }
예제 #2
0
 public void should_return_3A0B_when_three_numbers_exactly_match_in_answer()
 {
     var guessNumber = new GuessNumber("5678");
     var result = guessNumber.Validate("5679");
     Assert.AreEqual("3A0B", result);
 }
예제 #3
0
 public void should_return_3A1B_when_three_number_exactly_match__answer_and_one_exit()
 {
     var guessNumber = new GuessNumber("5678");
     var result = guessNumber.Validate("5675");
     Assert.AreEqual("3A1B", result);
 }
예제 #4
0
 public void should_return_0A4B_when_no_number_exactly_match_answer_and_on_number_exits_in()
 {
     var guessNumber = new GuessNumber("5678");
     var result = guessNumber.Validate("8765");
     Assert.AreEqual("0A4B", result);
 }