public void WordIsCreatedRandomly()
        {
            var wordOne = new WordInitializer();
            var wordTwo = new WordInitializer();

            Assert.AreNotEqual(wordOne, wordTwo);
        }
        public void WordIsCreatedRandomly()
        {
            var wordOne = new WordInitializer();
            var wordTwo = new WordInitializer();

            Assert.AreNotEqual(wordOne, wordTwo);
        }
        public void WordInitializerGenerateWordOfUnderscoresEqualsWordLengthInUndersores()
        {
            var wordInitializer   = new WordInitializer();
            var word              = wordInitializer.Word;
            var wordOfUnderscores = wordInitializer.GuessedWordLetters;

            Assert.AreEqual(word.Length, wordOfUnderscores.Length);
        }
        public void WordInitializerGenerateWordOfUnderscoresEqualsWordLengthInUndersores()
        {
            var wordInitializer = new WordInitializer();
            var word = wordInitializer.Word;
            var wordOfUnderscores = wordInitializer.GuessedWordLetters;

            Assert.AreEqual(word.Length, wordOfUnderscores.Length);
        }
        public void HangmanGameIsCreatedAtLeastTwice()
        {
            var wordInitializer = new WordInitializer();

            var gameOne = new HangmanGame(wordInitializer);
            var gameTwo = new HangmanGame(wordInitializer);

            Assert.ReferenceEquals(gameOne.WordInitializer, gameTwo.WordInitializer);
        }
        public void HangmanGameIsCreatedAtLeastTwice()
        {
            var wordInitializer = new WordInitializer();

            var gameOne = new HangmanGame(wordInitializer);
            var gameTwo = new HangmanGame(wordInitializer);

            Assert.ReferenceEquals(gameOne.WordInitializer, gameTwo.WordInitializer);
        }
Exemplo n.º 7
0
 public HangmanGame(WordInitializer wordInitializer)
 {
     this.WordInitializer = wordInitializer;
 }
Exemplo n.º 8
0
 public HangmanGame(WordInitializer wordInitializer)
 {
     this.WordInitializer = wordInitializer;
 }