From c3726d11613c66c885b986508d59165726499376 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 18 Dec 2024 16:17:54 -0500 Subject: [PATCH] When testing certificate Import/Export, don't hard-code email address --- UnitTests/Cryptography/SecureMimeTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnitTests/Cryptography/SecureMimeTests.cs b/UnitTests/Cryptography/SecureMimeTests.cs index ccec68d9ec..eef1ea46d7 100644 --- a/UnitTests/Cryptography/SecureMimeTests.cs +++ b/UnitTests/Cryptography/SecureMimeTests.cs @@ -2734,7 +2734,7 @@ public async Task TestSecureMimeDecryptVerifyThunderbirdAsync () [Test] public virtual void TestSecureMimeImportExport () { - var self = new MailboxAddress ("MimeKit UnitTests", "mimekit@example.com"); + var self = new MailboxAddress ("MimeKit UnitTests", RsaCertificate.EmailAddress); var mailboxes = new List { // we're going to export our public certificate so that we can email it to someone // so that they can then encrypt their emails to us. @@ -2762,7 +2762,7 @@ public virtual void TestSecureMimeImportExport () [Test] public virtual async Task TestSecureMimeImportExportAsync () { - var self = new MailboxAddress ("MimeKit UnitTests", "mimekit@example.com"); + var self = new MailboxAddress ("MimeKit UnitTests", RsaCertificate.EmailAddress); var mailboxes = new List { // we're going to export our public certificate so that we can email it to someone // so that they can then encrypt their emails to us.