Exemplo n.º 1
0
        public void TestFolderPathOfInvalidFormatNoFolders()
        {
            string        folderPath = @"\\[email protected]";
            List <string> folders;
            string        store;

            TaskBodyParser.ParseStoreAndFolders(folderPath, out store, out folders);
        }
Exemplo n.º 2
0
        public void TestFolderPathOneLevel()
        {
            //\\[email protected]\ByggR\Driftsättningar\Enköping
            //\\[email protected]\Inbox

            string folderPath = @"\\[email protected]\Inbox";

            List <string> folders;
            string        store;

            TaskBodyParser.ParseStoreAndFolders(folderPath, out store, out folders);

            Assert.AreEqual("*****@*****.**", store);
            Assert.AreEqual(1, folders.Count);
            Assert.AreEqual("Inbox", folders[0]);
        }