public void EmailComposer_Build_HasEmptyTo_ShouldThrowException() { EmailComposer composer = new EmailComposer(); Assert.ThrowsException <ArgumentNullException>( () => composer.SetFrom("*****@*****.**").SetSubject("Hello world").SetBody("Test").Build()); }
public void EmailComposer_Build_HasEmptySubject_ShouldThrowException() { EmailComposer composer = new EmailComposer(); Assert.ThrowsException <ArgumentNullException>( () => composer.SetFrom("*****@*****.**").Build()); }