mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			589 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			589 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |