示例#1
0
            public void Dispose()
            {
                IVsHierarchy hierarchy = project as IVsHierarchy;

                if (null != hierarchy)
                {
                    hierarchy.Close();
                }
                project = null;

                if (null != services)
                {
                    services.Dispose();
                    services = null;
                }
            }
示例#2
0
 /// <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();
 }