Пример #1
0
 public void should_be_0a0b_when_numbers_are_totally_wrong()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("0a0b", rule.judge("9876"));
 }
Пример #2
0
 public void should_be_3a0b_when_three_numbers_are_right_and_in_right_position()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("3a0b", rule.judge("1236"));
 }
Пример #3
0
 public void should_be_4a0b_when_numbers_are_totally_right()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("4a0b", rule.judge(answer));
 }
Пример #4
0
 public void should_be_2a2b_when_two_are_only_right_for_digit_and_two_are_totally_right()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("2a2b", rule.judge("2134"));
 }
Пример #5
0
 public void should_be_1a3b_when_three_numbers_are_only_right_for_digit_and_one_is_totally_right()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("1a3b", rule.judge("1423"));
 }
Пример #6
0
 public void should_be_1a0b_when_one_number_is_right_and_in_right_position()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("1a0b", rule.judge("1876"));
 }
Пример #7
0
 public void should_be_0a3b_when_three_numbers_are_only_right_for_digit()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("0a3b", rule.judge("3129"));
 }
Пример #8
0
 public void should_be_0a1b_when_one_number_is_only_right_for_digit()
 {
     string answer = "1234";
     var rule = new NumberRule(answer);
     Assert.AreEqual("0a1b", rule.judge("9873"));
 }