public void BEventWithValidMembers_WhenCreateValidated_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 create valid. bool valid = _event.CreateValid(); //Assert: the event is valid for creation. Assert.AreEqual(true, valid); }
public void BEventWithInvalidMembers_WhenCreateValidated_ReturnsFalse() { //Arrange: An event with all invalid members is created. BEvent _event = new BEvent{ username = null, Name = null, Description = null }; //Act: the event is checked if it is create valid. bool valid = _event.CreateValid(); //Assert: the event is not valid for creation. Assert.AreEqual(false, valid); }