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

            editorFactory.Dispose();
            editorFactory = null;
        }
예제 #2
0
        public void DisposeTest()
        {
            VisualStudioHaskellPackage package = new VisualStudioHaskellPackage();

            EditorFactory editorFactory = new EditorFactory(package);

            editorFactory.Dispose();
        }
예제 #3
0
        public void DisposeTest()
        {
            VSThrowawayPackagePackage package = new VSThrowawayPackagePackage();

            EditorFactory editorFactory = new EditorFactory(package);

            editorFactory.Dispose();
        }
예제 #4
0
        public void DisposeTest()
        {
            oop3Package package = new oop3Package();

            EditorFactory editorFactory = new EditorFactory(package);

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

            EditorFactory editorFactory = new EditorFactory(package);

            editorFactory.Dispose();
        }
예제 #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");
        }