Esempio n. 1
0
        public void checkNonExistingWordShoudlReturnFalse()
        {
            AnimatedWordsScreen screen = new AnimatedWordsScreen(60, 20);

            screen.addWordToGame("test");
            screen.addWordToGame("another");
            Assert.False(screen.checkWordInGame("other"));
        }
Esempio n. 2
0
        public void checkAndRemoveExistingWordShoudlRemoveOneWord()
        {
            AnimatedWordsScreen screen = new AnimatedWordsScreen(60, 20);

            screen.addWordToGame("test");
            screen.addWordToGame("another");
            screen.addWordToGame("other");
            Assert.AreEqual(3, screen.numberOfWordsInGame());
            screen.checkAndRemoveWordInGame("test");
            Assert.AreEqual(2, screen.numberOfWordsInGame());
        }
Esempio n. 3
0
        public void addWordToGameShouldNotThrowException()
        {
            AnimatedWordsScreen screen = new AnimatedWordsScreen(60, 20);

            Assert.DoesNotThrow(() => { screen.addWordToGame("test"); });
        }