public void BUrgencyWithInvalidMembers_WhenUpdateValidated_ReturnsFalse() { //Arrange: A urgency with all invalid members is created. BUrgency urgency = new BUrgency{ Name = "12345678901234567890", Description = null }; //Act: the urgency is checked if it is update valid. bool valid = urgency.UpdateValid(); //Assert: the urgency is not valid for updating. Assert.AreEqual(false, valid); }
public void BUrgencyWithValidMembers_WhenUpdateValidated_ReturnsTrue() { //Arrange: A urgency with all valid members is created. BUrgency urgency = new BUrgency{ Name = "Name", Description = "Description" }; //Act: the urgency is checked if it is update valid. bool valid = urgency.UpdateValid(); //Assert: the urgency is valid for updating. Assert.AreEqual(true, valid); }