public void BEventWithInvalidMembers_WhenUpdateValidated_ReturnsFalse() { //Arrange: An event with all invalid members is created. BEvent _event = new BEvent{ username = null, Name = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", Description = null }; //Act: the event is checked if it is update valid. bool valid = _event.UpdateValid(); //Assert: the event is not valid for updating. Assert.AreEqual(false, valid); }
public void BEventWithValidMembers_WhenUpdateValidated_ReturnsTrue() { //Arrange: An event with all valid members is created. BEvent _event = new BEvent{ username = "******", Name = "Name", Description = "Description" }; //Act: the event is checked if it is update valid. bool valid = _event.UpdateValid(); //Assert: the event is valid for updating. Assert.AreEqual(true, valid); }