Beispiel #1
0
        public void getSingleTodoItem()
        {
            Todolist todoList = new Todolist();

            todoList.add(Todoitem.Priority.High, "This is a test.");

            Assert.Equal("This is a test.", todoList.getNextTodoItem());
        }
Beispiel #2
0
        public void getEarlierWithSamePriority()
        {
            Todolist todoList = new Todolist();

            todoList.add(Todoitem.Priority.Low, "Earlier");
            todoList.add(Todoitem.Priority.Low, "Later");

            Assert.Equal("Earlier", todoList.getNextTodoItem());
        }
Beispiel #3
0
        public void getMediumPriorityAddedAfterLowPriority()
        {
            Todolist todoList = new Todolist();

            todoList.add(Todoitem.Priority.Low, "Low");
            todoList.add(Todoitem.Priority.Medium, "Medium");

            Assert.Equal("Medium", todoList.getNextTodoItem());
        }
Beispiel #4
0
        public void getHighPriorityAddedBeforeLowPriority()
        {
            Todolist todoList = new Todolist();

            todoList.add(Todoitem.Priority.High, "High");
            todoList.add(Todoitem.Priority.Low, "Low");

            Assert.Equal("High", todoList.getNextTodoItem());
        }
Beispiel #5
0
        public void getHighPriorityAddedAfterMediumPriority()
        {
            Todolist todoList = new Todolist();

            todoList.add(Todoitem.Priority.Medium, "Medium");
            todoList.add(Todoitem.Priority.High, "High");

            Assert.Equal("High", todoList.getNextTodoItem());
        }