Esempio n. 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);
        }
Esempio n. 2
0
        public void ShouldSupportAddANewTaskWithoutDescription()
        {
            var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
            var taskDescription   = validateTaskTitle.ValidateDescripion();

            Assert.AreEqual(null, taskDescription);
        }
Esempio n. 3
0
 public void ShouldSupportAddANewTaskWithoutDescription()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
     var taskDescription = validateTaskTitle.ValidateDescripion();
     Assert.AreEqual(null,taskDescription);
 }
Esempio n. 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);
 }