Skip to content

Commit 4e5fb41

Browse files
committed
Updated unit tests to use MD5.Create() instead of new MD5CryptoServiceProvider()
Fixes some compile warnings about using obsolete classes.
1 parent ba28d24 commit 4e5fb41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitTests/Net/Imap/ImapFolderFetchTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public void TestExtractingPrecisePangolinAttachment ()
793793
attachment.Content.DecodeTo (jpeg);
794794
jpeg.Position = 0;
795795

796-
using (var md5 = new MD5CryptoServiceProvider ()) {
796+
using (var md5 = MD5.Create ()) {
797797
var md5sum = HexEncode (md5.ComputeHash (jpeg));
798798

799799
Assert.AreEqual ("167a46aa81e881da2ea8a840727384d3", md5sum, "MD5 checksums do not match.");
@@ -870,7 +870,7 @@ public async Task TestExtractingPrecisePangolinAttachmentAsync ()
870870
attachment.Content.DecodeTo (jpeg);
871871
jpeg.Position = 0;
872872

873-
using (var md5 = new MD5CryptoServiceProvider ()) {
873+
using (var md5 = MD5.Create ()) {
874874
var md5sum = HexEncode (md5.ComputeHash (jpeg));
875875

876876
Assert.AreEqual ("167a46aa81e881da2ea8a840727384d3", md5sum, "MD5 checksums do not match.");

0 commit comments

Comments
 (0)