You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
696 B
25 lines
696 B
using System.IO;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
using Jellyfin.Extensions.Json;
|
|
using MediaBrowser.MediaEncoding.Probing;
|
|
using Xunit;
|
|
|
|
namespace Jellyfin.MediaEncoding.Tests
|
|
{
|
|
public class FFprobeParserTests
|
|
{
|
|
[Theory]
|
|
[InlineData("ffprobe1.json")]
|
|
public async Task Test(string fileName)
|
|
{
|
|
var path = Path.Join("Test Data", fileName);
|
|
await using (var stream = File.OpenRead(path))
|
|
{
|
|
var res = await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.Options).ConfigureAwait(false);
|
|
Assert.NotNull(res);
|
|
}
|
|
}
|
|
}
|
|
}
|