Пример #1
0
        public void ShouldReturnFalseOnMismatch_HasWon(int x, int y, int z, int m)
        {
            var sut = new GuessModel(m);

            sut.GuessNumber(x);
            sut.GuessNumber(y);
            sut.GuessNumber(z);
            Assert.False(sut.HasWon());
        }
Пример #2
0
        public void ShouldReturnFalse_HasWon(int x, int y)
        {
            var sut = new GuessModel(y);

            sut.GuessNumber(x);
            Assert.False(sut.HasWon());
        }
Пример #3
0
        public void ShouldReturnTrueOnMatch_HasWon(int x, int y)
        {
            var sut = new GuessModel(y);

            sut.GuessNumber(x);
            Assert.True(sut.HasWon());
        }
Пример #4
0
        public void ShouldReturnRemaining_GetRemainingGuesses(int x, int m)
        {
            var sut = new GuessModel(m);

            sut.GuessNumber(x);
            var actual = sut.SetRemainingGuesses();

            Assert.Equal(10, actual);
        }