public void Dispose() { if (_vs != null) { _vs.Dispose(); _vs = null; } }
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") ); } }