Add net10.0 assets and run some fixers (#875)

This commit is contained in:
Stephen Toub 2025-10-15 15:27:43 -04:00 • committed by GitHub
commit bfc0980ef5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 168 additions and 194 deletions

View file

@ -13,7 +13,7 @@ public static class IconTests
{
Source = "https://example.com/icon.png",
MimeType = "image/png",
Sizes = new List<string> { "48x48" },
Sizes = ["48x48"],
Theme = "light"
};
@ -61,7 +61,7 @@ public static class IconTests
{
Source = "https://example.com/icon.svg",
MimeType = "image/svg+xml",
Sizes = new List<string> { "any" },
Sizes = ["any"],
Theme = "dark"
};

View file

@ -16,8 +16,8 @@ public static class ImplementationTests
Version = "1.0.0",
Icons =
[
new() { Source = "https://example.com/icon.png", MimeType = "image/png", Sizes = new List<string> { "48x48" } },
new() { Source = "https://example.com/icon.svg", MimeType = "image/svg+xml", Sizes = new List<string> { "any" } }
new() { Source = "https://example.com/icon.png", MimeType = "image/png", Sizes = ["48x48"] },
new() { Source = "https://example.com/icon.svg", MimeType = "image/svg+xml", Sizes = ["any"] }
],
WebsiteUrl = "https://example.com"
};

View file

@ -16,7 +16,7 @@ public static class PromptTests
Description = "Review the provided code",
Icons =
[
new() { Source = "https://example.com/review-icon.svg", MimeType = "image/svg+xml", Sizes = new List<string> { "any" } }
new() { Source = "https://example.com/review-icon.svg", MimeType = "image/svg+xml", Sizes = ["any"] }
],
Arguments =
[

View file

@ -19,7 +19,7 @@ public static class ResourceTests
Size = 1024,
Icons =
[
new() { Source = "https://example.com/pdf-icon.png", MimeType = "image/png", Sizes = new List<string> { "32x32" } }
new() { Source = "https://example.com/pdf-icon.png", MimeType = "image/png", Sizes = ["32x32"] }
],
Annotations = new Annotations { Audience = [Role.User] }
};
@ -86,7 +86,7 @@ public static class ResourceTests
Description = "A test resource",
MimeType = "text/plain",
Size = 512,
Icons = new List<Icon> { new() { Source = "https://example.com/icon.svg" } },
Icons = [new() { Source = "https://example.com/icon.svg" }],
Annotations = new Annotations { Audience = [Role.User] }
};

View file

@ -16,7 +16,7 @@ public static class ToolTests
Description = "Get current weather information",
Icons =
[
new() { Source = "https://example.com/weather.png", MimeType = "image/png", Sizes = new List<string> { "48x48" } }
new() { Source = "https://example.com/weather.png", MimeType = "image/png", Sizes = ["48x48"] }
],
Annotations = new ToolAnnotations
{