Пример #1
0
        public void ShouldSupportAddANewTaskWithDescription()
        {
            var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", "something to do");
            var taskDescription   = validateTaskTitle.ValidateDescripion();

            Assert.AreEqual("something to do", taskDescription);
        }
Пример #2
0
        public void ShouldSupportAddANewTaskWithoutDescription()
        {
            var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
            var taskDescription   = validateTaskTitle.ValidateDescripion();

            Assert.AreEqual(null, taskDescription);
        }
Пример #3
0
 public void ShouldSupportAddANewTaskWithoutDescription()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
     var taskDescription = validateTaskTitle.ValidateDescripion();
     Assert.AreEqual(null,taskDescription);
 }
Пример #4
0
 public void ShouldSupportAddANewTaskWithDescription()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", "something to do");
     var taskDescription = validateTaskTitle.ValidateDescripion();
     Assert.AreEqual("something to do", taskDescription);
 }