public void LastTaskTest()
        {
            AddSomeControlComponent addSomeControlComponent = new AddSomeControlComponent(webDriver);

            addSomeControlComponent.Open(_url);
            addSomeControlComponent.InputNewTask("New task");
            string lastTask = addSomeControlComponent.GetLastTask();

            Assert.AreEqual(lastTask, "New task", "Error! The entered task does not match the one received. ");
        }
        public void AddedTaskNotExecutedTest()
        {
            AddSomeControlComponent addSomeControlComponent = new AddSomeControlComponent(webDriver);

            addSomeControlComponent.Open(_url);
            addSomeControlComponent.InputNewTask("New task");
            int  countTask = addSomeControlComponent.GetCountTask();
            bool execution = addSomeControlComponent.CheckForExecution(countTask - 1);

            Assert.IsFalse(execution, "Error! The number of tasks does not match. ");
        }
        public void CountTaskTest()
        {
            AddSomeControlComponent addSomeControlComponent = new AddSomeControlComponent(webDriver);

            addSomeControlComponent.Open(_url);
            int countTaskBefore = addSomeControlComponent.GetCountTask();

            addSomeControlComponent.InputNewTask("New task");
            int countTaskAfter = addSomeControlComponent.GetCountTask();

            Assert.AreEqual(countTaskBefore + 1, countTaskAfter, "Error! The number of tasks does not match. ");
        }