public void should_get_the_result() { var puzzle = new Puzzle(1,2,3,4); var numbers = puzzle.Peek(); Assert.Equal("1234", numbers); }
public void should_return_fail_after_6_try_and_not_guess_out() { var puzzle = new Puzzle(1,2,3,4); puzzle.Judge(2, 3, 4, 5); puzzle.Judge(2, 3, 4, 5); puzzle.Judge(2, 3, 4, 5); puzzle.Judge(2, 3, 4, 5); puzzle.Judge(2, 3, 4, 5); var result = puzzle.Judge(2, 3, 4, 5); Assert.Equal("FAIL", result); }
public void should_return_the_correct_result(string expected, int a, int b, int c, int d) { var puzzle = new Puzzle(1, 2, 3, 4); var result = puzzle.Judge(a,b,c,d); Assert.Equal(expected, result); }