public void ParseFromAddress_Failure(string value)
        {
            MailAddress address = null;
            bool        result  = SendGridBinding.ParseFromAddress(value, out address);

            Assert.False(result);
            Assert.Null(address);
        }
        public void ParseFromAddress_Success()
        {
            MailAddress address = null;

            SendGridBinding.ParseFromAddress("*****@*****.**", out address);
            Assert.Equal("*****@*****.**", address.Address);
            Assert.Equal(string.Empty, address.DisplayName);

            address = null;
            SendGridBinding.ParseFromAddress("[email protected]:Test Account", out address);
            Assert.Equal("*****@*****.**", address.Address);
            Assert.Equal("Test Account", address.DisplayName);

            address = null;
            SendGridBinding.ParseFromAddress("[email protected]:Test Acco:unt", out address);
            Assert.Equal("*****@*****.**", address.Address);
            Assert.Equal("Test Acco:unt", address.DisplayName);
        }