jellyfin/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs

24 lines
648 B
C#
Raw Normal View History

2020-01-12 15:57:13 -07:00
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
2020-08-26 07:22:48 -07:00
using MediaBrowser.Common.Json;
2020-01-12 15:57:13 -07:00
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);
using (var stream = File.OpenRead(path))
{
2020-08-26 07:22:48 -07:00
await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.GetOptions()).ConfigureAwait(false);
2020-01-12 15:57:13 -07:00
}
}
}
}