public void EditorFactoryTestCleanup() { editorPackage.Dispose(); editorPackage = null; editorFactory.Dispose(); editorFactory = null; }
public void DisposeTest() { VisualStudioHaskellPackage package = new VisualStudioHaskellPackage(); EditorFactory editorFactory = new EditorFactory(package); editorFactory.Dispose(); }
public void DisposeTest() { VSThrowawayPackagePackage package = new VSThrowawayPackagePackage(); EditorFactory editorFactory = new EditorFactory(package); editorFactory.Dispose(); }
public void DisposeTest() { oop3Package package = new oop3Package(); EditorFactory editorFactory = new EditorFactory(package); editorFactory.Dispose(); }
public void DisposeTest() { DTMstudioTestPackage package = new DTMstudioTestPackage(); EditorFactory editorFactory = new EditorFactory(package); editorFactory.Dispose(); }
public void DisposeDisposableMembersTest() { VisualStudioHaskellPackage package = new VisualStudioHaskellPackage(); EditorFactory editorFactory = new EditorFactory(package); OleServiceProvider serviceProvider = OleServiceProvider.CreateOleServiceProviderWithBasicServices(); editorFactory.SetSite(serviceProvider); object service = editorFactory.GetService(typeof(IProfferService)); Assert.IsNotNull(service); editorFactory.Dispose(); //service provider contains no services after this call service = editorFactory.GetService(typeof(IProfferService)); Assert.IsNull(service, "serviceprovider has not beed disposed as expected"); }