示例#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 ShouldSupportAddANewTaskWithSpecifiedTitle()
        {
            var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
            var taskTitle         = validateTaskTitle.ValidateName();

            taskTitle.ShouldBeTrue();
        }
示例#4
0
        public void ShouldNotSupportAddANewTaskWithoutTaskTitle()
        {
            var validateTaskTitle = new ValidatorNameAndDescrition(null, null);
            var taskTitle         = validateTaskTitle.ValidateName();

            taskTitle.ShouldBeFalse();
        }
示例#5
0
 public void ShouldSupportAddANewTaskWithSpecifiedTitle()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
     var taskTitle = validateTaskTitle.ValidateName();
     taskTitle.ShouldBeTrue();
 }
示例#6
0
 public void ShouldSupportAddANewTaskWithoutDescription()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", null);
     var taskDescription = validateTaskTitle.ValidateDescripion();
     Assert.AreEqual(null,taskDescription);
 }
示例#7
0
 public void ShouldSupportAddANewTaskWithDescription()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition("Go to work", "something to do");
     var taskDescription = validateTaskTitle.ValidateDescripion();
     Assert.AreEqual("something to do", taskDescription);
 }
示例#8
0
 public void ShouldNotSupportAddANewTaskWithoutTaskTitle()
 {
     var validateTaskTitle = new ValidatorNameAndDescrition(null,null);
     var taskTitle = validateTaskTitle.ValidateName();
     taskTitle.ShouldBeFalse();
 }