Exemple #1
0
        public void ChangeName_ShouldCreateNewTodoEvent()
        {
            var now  = DateTime.Now;
            var item = new TodoItem(name);

            list.AddItem(item);
            list.UpdateItemName(name, newName);

            Assert.Equal(EventType.ChangeName, list.GetLastEvent(newName).EventType);
            Assert.True(list.GetLastEvent(newName).EventDate > now);
        }