forked from videolan/libvlcsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoreLoadingTests.cs
More file actions
27 lines (24 loc) · 853 Bytes
/
Copy pathCoreLoadingTests.cs
File metadata and controls
27 lines (24 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using LibVLCSharp.Shared;
using NUnit.Framework;
using System.IO;
namespace LibVLCSharp.Tests
{
[TestFixture]
public class CoreLoadingTests
{
[Test]
public void LoadLibVLCFromSpecificPath()
{
var dirPath = Path.GetDirectoryName(typeof(CoreLoadingTests).Assembly.Location);
var finalPath = Path.Combine(dirPath, "libvlc", "win-x86");
Assert.DoesNotThrow(() => Core.Initialize(finalPath), "fail to load libVLC dll at specified location");
var libVLC = new LibVLC("--no-audio", "--no-video");
}
[Test]
public void LoadLibVLCFromInferredPath()
{
Assert.DoesNotThrow(() => Core.Initialize(), "fail to load libVLC dll at specified location");
var libVLC = new LibVLC("--no-audio", "--no-video");
}
}
}