Example #1
0
        public void EditorFactoryTestCleanup()
        {
            editorPackage.Dispose();
            editorPackage = null;

            editorFactory.Dispose();
            editorFactory = null;
        }
Example #2
0
        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();
        }
Example #4
0
        public void DisposeTest()
        {
            oop3Package package = new oop3Package();

            EditorFactory editorFactory = new EditorFactory(package);

            editorFactory.Dispose();
        }
Example #5
0
        public void DisposeTest()
        {
            DTMstudioTestPackage package = new DTMstudioTestPackage();

            EditorFactory editorFactory = new EditorFactory(package);

            editorFactory.Dispose();
        }
Example #6
0
        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");
        }