예제 #1
0
        public void EmailComposer_Build_HasEmptyTo_ShouldThrowException()
        {
            EmailComposer composer = new EmailComposer();

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

            Assert.ThrowsException <ArgumentNullException>(
                () => composer.SetFrom("*****@*****.**").Build());
        }