Esempio n. 1
0
        public void When_Word_Contains_Same_Letter_Two_Times_Return_Word_Filled()
        {
            //Arrange
            var game = new GallowGame(new Word("arara"));

            //Act
            game.Try('a');

            //Assert
            Assert.That(game.ToString(), Is.EqualTo("a?a?a"));
        }
Esempio n. 2
0
        public void When_Letter_Contains_Game_Returns_Word_Filled()
        {
            //Arrange
            var game = new GallowGame(new Word("interface"));

            //Act
            game.Try('a');

            //Assert
            Assert.That(game.ToString(), Is.EqualTo("??????a??"));
        }