コード例 #1
0
ファイル: PstTest.cs プロジェクト: zhonghai66/pstsdknet
        public void OpenFolderTest()
        {
            string  path     = string.Empty;  // TODO: Initialize to an appropriate value
            Pst     target   = new Pst(path); // TODO: Initialize to an appropriate value
            string  name     = string.Empty;  // TODO: Initialize to an appropriate value
            IFolder expected = null;          // TODO: Initialize to an appropriate value
            IFolder actual;

            actual = target.OpenFolder(name);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
コード例 #2
0
ファイル: UnitTest1.cs プロジェクト: zhonghai66/pstsdknet
        public void GetTopIMFFolder()
        {
            using (IPst pstFile = new Pst(@"Resources\small_test.pst"))
            {
                var topId = pstFile.GetTopIPMFolderId();
                Assert.AreNotEqual(0, topId);

                var topFolder = pstFile.OpenFolder(topId);

                Assert.IsNotNull(topFolder);
            }
        }