Esempio n. 1
0
        public void Score_ShouldNotIncrement_WhenKeywordAlreadyFound()
        {
            Game game = new JavaGame();

            game.processInput("boolean");
            game.processInput("boolean");
            Assert.AreEqual(game.score, 1);
        }
Esempio n. 2
0
        public void ProcessInput_ShoudReturnFalse_WhenKeyworkDoesntExist()
        {
            Game game   = new JavaGame();
            bool result = game.processInput("bool");

            Assert.AreEqual(result, false);
        }
Esempio n. 3
0
        public void Score_ShouldIncrement_WhenKeyworkExists()
        {
            Game game = new JavaGame();

            game.processInput("boolean");
            Assert.AreEqual(game.score, 1);
        }
Esempio n. 4
0
        public void ProcessInput_ShoudReturnTrue_WhenKeyworkExists()
        {
            Game game   = new JavaGame();
            bool result = game.processInput("boolean");

            Assert.AreEqual(result, true);
        }
Esempio n. 5
0
        public void ProcessInput_ShouldHandleNullValues()
        {
            Game game = new JavaGame();

            game.processInput(null);
        }