Commit 2124b80c authored by Martin Finkel's avatar Martin Finkel

Media parsing: Add additional unit test

parent bb357bd9
......@@ -187,6 +187,14 @@ namespace LibVLCSharp.Tests
Assert.AreEqual(MediaParsedStatus.Failed, parseResult);
}
[Test]
public async Task ParseShouldBeSkippedIfLocalParseSpecifiedAndRemoteUrlProvided()
{
var media = new Media(_libVLC, RealStreamMediaPath, FromType.FromLocation);
var parseResult = await media.Parse(MediaParseOptions.ParseLocal);
Assert.AreEqual(MediaParsedStatus.Skipped, parseResult);
}
private async Task<Stream> GetStreamFromUrl(string url)
{
byte[] imageData = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment