예제 #1
0
 public void Dispose()
 {
     if (_vs != null)
     {
         _vs.Dispose();
         _vs = null;
     }
 }
예제 #2
0
        public void TestInitialize(string deploymentDirectory)
        {
            _testDataFiles = GetAllFileInfo(_testDataRoot);

            if (_vs == null || !_vs.IsRunning)
            {
                _vs?.Dispose();
                _vs = new VsInstance();
                _vs.StartOrRestart(
                    DevEnvExe,
                    string.IsNullOrEmpty(RootSuffix) ? null : $"/rootSuffix {RootSuffix}",
                    _testDataRoot,
                    Path.Combine(deploymentDirectory, "Temp")
                    );
            }
        }