Exemple #1
0
        private void VerifyMimeTypeMatchesExpected(string mimeTypeInput, AttachmentType typeExpected)
        {
            TextMessageReaderiOS6_Accessor reader = new TextMessageReaderiOS6_Accessor(@"C:\fakepath\");
            AttachmentType typeActual             = reader.ParseAttachmentType(mimeTypeInput);

            Assert.AreEqual(typeExpected, typeActual);
        }
        public static TextMessage SingleMessageFromDatabase(IDatabaseReader databaseReader)
        {
            TextMessageReaderiOS6_Accessor messageReader = new TextMessageReaderiOS6_Accessor(_MockBackupPath);
            messageReader.ParseDatabase(databaseReader);

            List<TextMessage> messages = new List<TextMessage>(messageReader);

            return messages[0];
        }
Exemple #3
0
        public static TextMessage SingleMessageFromDatabase(IDatabaseReader databaseReader)
        {
            TextMessageReaderiOS6_Accessor messageReader = new TextMessageReaderiOS6_Accessor(_MockBackupPath);

            messageReader.ParseDatabase(databaseReader);

            List <TextMessage> messages = new List <TextMessage>(messageReader);

            return(messages[0]);
        }
 private void VerifyMimeTypeMatchesExpected(string mimeTypeInput, AttachmentType typeExpected)
 {
     TextMessageReaderiOS6_Accessor reader = new TextMessageReaderiOS6_Accessor(@"C:\fakepath\");
     AttachmentType typeActual = reader.ParseAttachmentType(mimeTypeInput);
     Assert.AreEqual(typeExpected, typeActual);
 }