public void HasSubject_ReturnsTrue_WhenSubjectIsNotEmpty() { //Arrange var message = new BasicMessage { Subject = RandomHelper.RandomString() }; var validator = new SendValidator(); //Act var actual = validator.HasSubject(message); //Assert Assert.IsTrue(actual); }
public void HasSubject_ReturnsFalse_WhenSubjectIsEmpty() { //Arrange var message = new BasicMessage { Subject = string.Empty }; var validator = new SendValidator(); //Act var actual = validator.HasSubject(message); //Assert Assert.IsFalse(actual); }