Пример #1
0
        public void TestFolderPathWithSubjectIncluded()
        {
            string line = @"MailLink=\\[email protected]\Inbox:ENTRY_ID:GUID-GUID:Re:Re:Re:This was original subject";
            string entryId;
            string folderPath;
            string guid;
            string subject;

            TaskBodyParser.GetFolderPathAndEntryId(line, out folderPath, out entryId, out guid, out subject);
            Assert.AreEqual("Re:Re:Re:This was original subject", subject);
        }
Пример #2
0
        public void TestLineWithoutEntryId()
        {
            //\\[email protected]\ByggR\Driftsättningar\Enköping
            //\\[email protected]\Inbox

            string line = @"MailLink=\\[email protected]\Inbox";
            string entryId;
            string folderPath;
            string guid;
            string subject;

            TaskBodyParser.GetFolderPathAndEntryId(line, out folderPath, out entryId, out guid, out subject);
        }
Пример #3
0
        public void TestSimpleCorrectLine()
        {
            //\\[email protected]\ByggR\Driftsättningar\Enköping
            //\\[email protected]\Inbox

            string line = @"MailLink=\\[email protected]\Inbox:ENTRY_ID:GUID-GUID";
            string entryId;
            string folderPath;
            string guid;
            string subject;

            TaskBodyParser.GetFolderPathAndEntryId(line, out folderPath, out entryId, out guid, out subject);
            Assert.AreEqual(@"\\[email protected]\Inbox", folderPath);
            Assert.AreEqual("ENTRY_ID", entryId);
            Assert.AreEqual("GUID-GUID", guid);
        }