Upgraded to .NET 10 (#1147)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-01 20:32:16 +01:00
1 parent faae2951f7
commit fc7399e81b
327 files changed
+3059 -3049

No files matched your search

+6 -6
View File
@@ -24,12 +24,12 @@ public sealed class MailContentKeyTests
[Test]
public void TheKeysArePinned()
{
Assert.Multiple(() =>
using (Assert.EnterMultipleScope())
{
Assert.That(MailContentKey.Create(HEADERS_ONLY with { EmailId = "M6d99ac3275bb4e" }), Is.EqualTo("mail:32b3f32a39c11c2c2d4fe3b06d86a8446075fb6d910ba960e3637665515bc93a"));
Assert.That(MailContentKey.Create(HEADERS_ONLY with { GmailMessageId = 1278455344230334865 }), Is.EqualTo("mail:b117963778cdad685e4382da37292cb2e6f67e7e8a33f0e9107e1cd386b32d50"));
Assert.That(MailContentKey.Create(HEADERS_ONLY), Is.EqualTo("mail:4e0ba3a77899611b9731d137320cc98df8e66f5ea88d158117958d6e1f2cbae1"));
});
}
}
[Test]
@@ -38,12 +38,12 @@ public sealed class MailContentKeyTests
var withEmailId = HEADERS_ONLY with { EmailId = "M6d99ac3275bb4e", GmailMessageId = 1278455344230334865 };
var withGmailId = HEADERS_ONLY with { GmailMessageId = 1278455344230334865 };
Assert.Multiple(() =>
using (Assert.EnterMultipleScope())
{
Assert.That(MailContentKey.Create(withEmailId with { GmailMessageId = null, Subject = "Another subject", Size = 1 }), Is.EqualTo(MailContentKey.Create(withEmailId)), "The EMAILID does not decide alone.");
Assert.That(MailContentKey.Create(withGmailId with { Subject = "Another subject", Size = 1 }), Is.EqualTo(MailContentKey.Create(withGmailId)), "The X-GM-MSGID does not decide alone.");
Assert.That(MailContentKey.Create(HEADERS_ONLY with { EmailId = " " }), Is.EqualTo(MailContentKey.Create(HEADERS_ONLY)), "An empty EMAILID is used.");
});
}
}
[Test]
@@ -68,12 +68,12 @@ public sealed class MailContentKeyTests
public void TheHeaderKeyTellsMailsApart()
{
var key = MailContentKey.Create(HEADERS_ONLY);
Assert.Multiple(() =>
using (Assert.EnterMultipleScope())
{
Assert.That(MailContentKey.Create(HEADERS_ONLY with { Size = 2049 }), Is.Not.EqualTo(key));
Assert.That(MailContentKey.Create(HEADERS_ONLY with { Subject = "Quarterly report, corrected" }), Is.Not.EqualTo(key));
Assert.That(MailContentKey.Create(HEADERS_ONLY with { Date = null }), Is.Not.EqualTo(key));
Assert.That(MailContentKey.Create(HEADERS_ONLY with { FromAddresses = ["bob@example.org"] }), Is.Not.EqualTo(key));
});
}
}
}