Example #1
0
        [Test] public void OpenTasksFolderTest()
        {
            IEMsgStore msgStore = OutlookSession.GetDefaultMsgStore();

            Assert.IsNotNull(msgStore);
            IEFolder folder = msgStore.OpenTasksFolder();

            Assert.IsNotNull(folder);
            folder.Dispose();
        }
Example #2
0
        public void LoadTest()
        {
            //MessageBox.Show( "LoadTest" );
            for (int i = 0; i < 10; ++i)
            {
                Tracer._Trace("Test: " + i);
                OutlookSession.Initialize( );

                IEMsgStore msgStore = OutlookSession.GetDefaultMsgStore();
                Assert.IsNotNull(msgStore);
                FolderEnum folderEnum = FolderEnum.SearchForFolders(new string[] { "TasksTest" });
                folderEnum.GetFolderDescriptor("TasksTest");
                OutlookSession.Uninitialize();
            }
        }