public void Should_create_0A0B_When_All_Digital_And_Position_Wrong() { var testSecretGenerator = new TestSecretGernerate(); var game = new BullsAndCowsGame(testSecretGenerator); string answer = game.Guess("5678"); Assert.Equal($"0A0B", answer); }
public void Should_create_BullsAndCowsGame() { var testSecretGenerator = new TestSecretGernerate(); var game = new BullsAndCowsGame(testSecretGenerator); Assert.NotNull(game); Assert.True(game.CanContinue); }
public void Should_create_0A4B_When_Digital_Right_But_Position_Wrong(string guess) { var testSecretGenerator = new TestSecretGernerate(); var game = new BullsAndCowsGame(testSecretGenerator); string answer = game.Guess(guess); Assert.Equal($"0A4B", answer); }