Ejemplo n.º 1
0
        private SingleNumberConversation GetDummyConversation()
        {
            SingleNumberConversation conversation = new SingleNumberConversation(GetDummyContact());

            conversation.AddMessage(GetMessage1());
            conversation.AddMessage(GetMessage2());
            conversation.AddMessage(GetMessage3());

            return(conversation);
        }
        public void StandardConversationTest()
        {
            SingleNumberConversation conversation = new SingleNumberConversation(GetDummyContact());

            conversation.AddMessage(GetMessage1());
            conversation.AddMessage(GetMessage3());
            conversation.AddMessage(GetMessage2());
            conversation.AddMessage(GetMessage4());

            TextMessage[] textMessagesExpected = { GetMessage1(), GetMessage2(), GetMessage3(), GetMessage4() };
            VerifyMessagesMatch(conversation, textMessagesExpected);
        }
Ejemplo n.º 3
0
        public void NullMessageContentsTest()
        {
            SingleNumberConversation conversation = new SingleNumberConversation(GetDummyContact());

            conversation.AddMessage(GetMessage1());
            conversation.AddMessage(GetMessage3());
            conversation.AddMessage(GetNullContentMessage());
            conversation.AddMessage(GetMessage4());

            TextMessage[] textMessagesExpected = { GetMessage1(), GetMessage3(), GetMessage4() };
            VerifyMessagesMatch(conversation, textMessagesExpected);
        }
        private SingleNumberConversation GetDummyConversation()
        {
            SingleNumberConversation conversation = new SingleNumberConversation(GetDummyContact());

            conversation.AddMessage(GetMessage1());
            conversation.AddMessage(GetMessage2());
            conversation.AddMessage(GetMessage3());

            return conversation;
        }