示例#1
0
        public void MessageMustOnlyBeAddedAfterSenderAddressIsKnown()
        {
            var emailMessage = new EmailMessage();

            emailMessage.Invoking(y => y.Message = "Test message")
            .ShouldThrow <Exception>()
            .WithMessage("Sender address is missing");
        }