public void Dispose() { IVsHierarchy hierarchy = project as IVsHierarchy; if (null != hierarchy) { hierarchy.Close(); } project = null; if (null != services) { services.Dispose(); services = null; } }
/// <summary> /// Runs after the test has run and to free resources obtained /// by all the tests in the test class. /// </summary> //[TestCleanup()] public void Cleanup() { ((IVsPackage)projectPackage).SetSite(null); serviceProvider.Dispose(); }