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