title: ChromiumWebBrowser Offscreen does not work with MsTest/NUnit
body: <p>I'm trying to use ChromiumWebBrowser from MsTest unit test framework in OffScreen mode to provide some testing... But Chromium constructor crashes all the time and I can't do anything with it. </p>
  
  <p>I've alreade left comments in similar threads on github:</p>
  
  <p><a href="https://github.com/cefsharp/CefSharp/issues/642" rel="nofollow noreferrer">Issue #1</a></p>
  
  <p><a href="https://github.com/cefsharp/CefSharp/issues/1343" rel="nofollow noreferrer">Isuee #2</a></p>
  
  <p>Also I've tried to find help on gitter channel.
  I've created MsTest project and added simple method where Chromium is used:</p>
  
  <pre><code>using System;
  using Microsoft.VisualStudio.TestTools.UnitTesting;
  using CefSharp;
  using CefSharp.OffScreen;
  using System.Threading;
  
  namespace ChromTests
  {
      [TestClass]
      public class UnitTest1
      {
          [TestMethod]
          public void TestMethod1()
          {
              ChromiumWebBrowser browser = null;
  
              // Create the offscreen Chromium browser.
              using (browser = new ChromiumWebBrowser("http://google.com")) 
              {
  
              }
  
              Cef.Shutdown();
          }
      }
  }
  </code></pre>
  
  <p>My solution structure:</p>
  
  <p><a href="https://i.stack.imgur.com/ubdGs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ubdGs.jpg" alt="My solution structure"></a></p>
  
  <p>My testsettings file (deploys all dependencies into working dir for test engine "TestResults...\Out folder"):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;TestSettings name="Release" id="88aeb968-8fa1-409d-95e4-4d1cb52532e2" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"&gt;
    &lt;Description&gt;These are default test settings for a local test run.&lt;/Description&gt;
    &lt;Deployment&gt;
      &lt;DeploymentItem filename="bin\x64\Release\natives_blob.bin" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\libcef.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\cef.pak" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.OffScreen.xml" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\cef_200_percent.pak" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\cef_100_percent.pak" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\cef_extensions.pak" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\widevinecdmadapter.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\snapshot_blob.bin" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.BrowserSubprocess.Core.pdb" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.OffScreen.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.xml" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.BrowserSubprocess.exe" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.Core.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\devtools_resources.pak" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\libEGL.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.BrowserSubprocess.Core.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.pdb" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.Core.pdb" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.BrowserSubprocess.pdb" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\icudtl.dat" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.Core.xml" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\d3dcompiler_47.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\chrome_elf.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\libGLESv2.dll" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\CefSharp.OffScreen.pdb" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\kn.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ml.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\lt.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\et.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\da.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\cs.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\sk.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\he.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\id.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\sl.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\fr.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\lv.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\de.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\tr.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\fa.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\zh-TW.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\hr.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ar.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\pt-BR.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\nl.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\vi.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\gu.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\hu.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ta.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\fi.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ms.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\sr.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\en-US.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\el.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\zh-CN.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\en-GB.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\pl.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\es.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\th.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\bg.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\pt-PT.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\it.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\te.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\fil.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\bn.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ro.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\sw.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\hi.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\nb.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ca.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\sv.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\uk.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ko.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\mr.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ja.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\es-419.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\am.pak" outputDirectory="locales\" /&gt;
      &lt;DeploymentItem filename="bin\x64\Release\locales\ru.pak" outputDirectory="locales\" /&gt;
    &lt;/Deployment&gt;
    &lt;Execution hostProcessPlatform="MSIL"&gt;
      &lt;TestTypeSpecific&gt;
        &lt;UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"&gt;
          &lt;AssemblyResolution&gt;
            &lt;TestDirectory useLoadContext="true" /&gt;
          &lt;/AssemblyResolution&gt;
        &lt;/UnitTestRunConfig&gt;
      &lt;/TestTypeSpecific&gt;
      &lt;AgentRule name="Execution Agents"&gt;
      &lt;/AgentRule&gt;
    &lt;/Execution&gt;
    &lt;Properties /&gt;
  &lt;/TestSettings&gt;
  </code></pre>
  
  <p>I run tests from Visual Studio Test Explorer and get such error:
  <a href="https://i.stack.imgur.com/AG5nz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AG5nz.jpg" alt="test engine crashes on test run"></a></p>
  
  <p>please help, need any support or ideas...</p>