4 writes to MediaType
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\UriContentTests.cs (4)
43
Assert.Throws<ArgumentException>("value", () => c.
MediaType
= type);
44
Assert.Throws<ArgumentNullException>("value", () => c.
MediaType
= null!);
57
content.
MediaType
= "image/png";
60
content.
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
"/>.
87
public bool HasTopLevelMediaType(string topLevelType) => DataUriParser.HasTopLevelMediaType(
MediaType
, topLevelType);
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\UriContentTests.cs (4)
55
Assert.Equal(mediaType, content.
MediaType
);
58
Assert.Equal("image/png", content.
MediaType
);
61
Assert.Equal(mediaType, content.
MediaType
);
102
Assert.Equal(mediaType, c.
MediaType
);