mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:27:21 +00:00
Upgraded to .NET 10 (#1147)
This commit is contained in:
1 parent
faae2951f7
commit
fc7399e81b
327 files changed
+3059
-3049
No files matched your search
@@ -41,11 +41,11 @@ public sealed class PluginLinksTests
|
||||
[Test]
|
||||
public void OnlyAMailtoLinkWritesAMail()
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(PluginLinks.TryParse("mailto:support@example.org", out var mail) && PluginLinks.IsMail(mail), Is.True);
|
||||
Assert.That(PluginLinks.TryParse("https://example.org", out var website) && PluginLinks.IsMail(website), Is.False);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[TestCase(AssistantPluginGenerationService.DEFAULT_SUPPORT_CONTACT, true)]
|
||||
@@ -64,10 +64,10 @@ public sealed class PluginLinksTests
|
||||
[TestCase("https://example.org/plugins?id=1", "https://example.org/plugins?id=1")]
|
||||
public void AMailLinkShowsItsAddressAndAWebsiteShowsItself(string text, string displayText)
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(PluginLinks.TryParse(text, out var link), Is.True);
|
||||
Assert.That(PluginLinks.GetDisplayText(link!), Is.EqualTo(displayText));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user