Пример #1
0
        public void Score_ShouldNotIncrement_WhenKeywordAlreadyFound()
        {
            Game game = new JavaGame();

            game.processInput("boolean");
            game.processInput("boolean");
            Assert.AreEqual(game.score, 1);
        }
Пример #2
0
        public void ProcessInput_ShoudReturnFalse_WhenKeyworkDoesntExist()
        {
            Game game   = new JavaGame();
            bool result = game.processInput("bool");

            Assert.AreEqual(result, false);
        }
Пример #3
0
        public void Score_ShouldIncrement_WhenKeyworkExists()
        {
            Game game = new JavaGame();

            game.processInput("boolean");
            Assert.AreEqual(game.score, 1);
        }
Пример #4
0
        public void ProcessInput_ShoudReturnTrue_WhenKeyworkExists()
        {
            Game game   = new JavaGame();
            bool result = game.processInput("boolean");

            Assert.AreEqual(result, true);
        }
Пример #5
0
        public void ProcessInput_ShouldHandleNullValues()
        {
            Game game = new JavaGame();

            game.processInput(null);
        }