mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 12:36:44 +00:00
Add test
This commit is contained in:
parent
b2488303cf
commit
4b0cd9239e
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
using FFMpegCore.Test.Resources;
|
using FFMpegCore.Test.Resources;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
namespace FFMpegCore.Test
|
namespace FFMpegCore.Test
|
||||||
|
@ -235,5 +235,12 @@ public async Task Probe_Success_32BitWavBitDepth_Async()
|
||||||
Assert.IsNotNull(info.PrimaryAudioStream);
|
Assert.IsNotNull(info.PrimaryAudioStream);
|
||||||
Assert.AreEqual(32, info.PrimaryAudioStream.BitDepth);
|
Assert.AreEqual(32, info.PrimaryAudioStream.BitDepth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void Probe_Success_Custom_Arguments()
|
||||||
|
{
|
||||||
|
var info = FFProbe.Analyse(TestResources.Mp4Video, customArguments: "-headers \"Hello: world\"");
|
||||||
|
Assert.AreEqual(3, info.Duration.Seconds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue