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