public void BUrgencyWithValidMembers_WhenCreateValidated_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 create valid. bool valid = urgency.CreateValid(); //Assert: the urgency is valid for creation. Assert.AreEqual(true, valid); }
public void BUrgencyWithInvalidMembers_WhenCreateValidated_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 create valid. bool valid = urgency.CreateValid(); //Assert: the urgency is not valid for creation. Assert.AreEqual(false, valid); }