public static void IsPluginLoaded() { // Get the current process. Process currentProcess = Process.GetCurrentProcess(); var names = currentProcess.Modules .Cast <ProcessModule>() .Where(_ => _ != null) .Select(_ => Path.GetFileNameWithoutExtension(_.ModuleName)); Assert.That(names, Contains.Item(WebRTC.GetModuleName())); }
public static void IsPluginLoaded() { // Get the current process. Process currentProcess = Process.GetCurrentProcess(); var names = currentProcess.Modules .Cast <ProcessModule>() .Where(_ => _ != null) .Select(_ => _.ModuleName) .ToArray(); Assert.Contains(WebRTC.GetModuleName(), names); }