diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-01-12 23:57:13 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-01-12 23:57:13 +0100 |
| commit | 56f580cdf6eb1a84275a582c4dc7dfb8245cc347 (patch) | |
| tree | 726dac1fb2364e567613173f8d3d199e1f2cb37d /tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | |
| parent | 93ab829df523c36a44ffa2f9caaf96505a2b2e5c (diff) | |
Add test to prevent regressions
Diffstat (limited to 'tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs')
| -rw-r--r-- | tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs new file mode 100644 index 000000000..2032f6cec --- /dev/null +++ b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs @@ -0,0 +1,22 @@ +using System.IO; +using System.Text.Json; +using System.Threading.Tasks; +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)) + { + await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream).ConfigureAwait(false); + } + } + } +} |
