4 writes to MediaType
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\UriContentTests.cs (4)
43Assert.Throws<ArgumentException>("value", () => c.MediaType = type); 44Assert.Throws<ArgumentNullException>("value", () => c.MediaType = null!); 57content.MediaType = "image/png"; 60content.MediaType = mediaType;
9 references to MediaType
Microsoft.Extensions.AI.Abstractions (5)
Contents\UriContent.cs (5)
77/// Determines whether the <see cref="MediaType"/>'s top-level type matches the specified <paramref name="topLevelType"/>. 79/// <param name="topLevelType">The type to compare against <see cref="MediaType"/>.</param> 80/// <returns><see langword="true"/> if the type portion of <see cref="MediaType"/> matches the specified value; otherwise, false.</returns> 85/// the specified <paramref name="topLevelType"/> against the type portion of <see cref="MediaType"/>. 87public bool HasTopLevelMediaType(string topLevelType) => DataUriParser.HasTopLevelMediaType(MediaType, topLevelType);
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\UriContentTests.cs (4)
55Assert.Equal(mediaType, content.MediaType); 58Assert.Equal("image/png", content.MediaType); 61Assert.Equal(mediaType, content.MediaType); 102Assert.Equal(mediaType, c.MediaType);