public void CreateStartAndStopDiscoverer() { var mds = _libVLC.MediaDiscoverers(MediaDiscovererCategory.Lan); var md = new MediaDiscoverer(_libVLC, mds.First().Name); Assert.True(md.Start()); Assert.True(md.IsRunning); md.Stop(); Assert.False(md.IsRunning); }
public void CreateStartAndStopDiscoverer() { var instance = new Instance(); var mds = instance.MediaDiscoverers(MediaDiscoverer.Category.Lan); var md = new MediaDiscoverer(instance, mds.First().Name); Assert.True(md.Start()); Assert.True(md.IsRunning); md.Stop(); Assert.False(md.IsRunning); }