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); }
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); }
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); }