Esempio n. 1
0
        public virtual void testWriteToDir()
        {
            testBuildMimePackageDocJMF();

            AttachmentCollection mp        = MimeUtil.GetMultiPart(sm_dirTestDataTemp + "testMimePackageDoc.mjm");
            DirectoryInfo        directory = new DirectoryInfo(sm_dirTestDataTemp + "TestWriteMime");

            if (directory.Exists)
            {
                directory.Delete();
            }
            MimeUtil.WriteToDir(mp, directory);
            Assert.IsTrue(new FileInfo(sm_dirTestDataTemp + "TestWriteMime/" + "test.icc").Exists);
        }