Пример #1
0
        public void ChangeName_ShouldHaveOtherValuesSame()
        {
            var orig        = new TodoItem(name, desc);
            var changedName = orig.ChangeName(newName);
            var changedDesc = changedName.ChangeDescription(newDesc);

            Assert.Equal(newName, changedName.Name);
            Assert.Equal(newDesc, changedDesc.Description);
            Assert.Equal(orig.CreatedDate, changedName.CreatedDate);
        }