Beispiel #1
0
        public void IsValidGuess_WrongNumberOfDigitsInvalid()
        {
            // arrange
            MasterMindBll masterMindBll = CreateSingleDigitNewMasterMindBll();

            // act
            bool isValidGuess = masterMindBll.IsValidGuess("123456");

            // assert
            Assert.IsFalse(isValidGuess);
        }
Beispiel #2
0
        public void IsValidGuess_LettersInvalid()
        {
            // arrange
            MasterMindBll masterMindBll = CreateSingleDigitNewMasterMindBll();

            // act
            bool isValidGuess = masterMindBll.IsValidGuess("a");

            // assert
            Assert.IsFalse(isValidGuess);
        }