public void EmptyConversationWindowModelTest() { ConversationWindowModel model = new ConversationWindowModel(new MockDisplayOptions(), new MockPhoneSelectOptions()); VerifyDefaultConversationModelSettings(model); TextConversationStatisticsTest.VerifyStatisticsAllZero(model.ConversationStatistics); }
public void EmptyPopulatedConversationWindowModelTest() { ConversationWindowModel model = GetEmptyPopulatedConversationWindowModel(); Assert.AreEqual(0, CountListItems(model.ConversationListItems)); Assert.IsNull(model.SelectedConversation); TextConversationStatisticsTest.VerifyStatisticsAllZero(model.ConversationStatistics); }
public void EmptyTest() { foreach (MainWindowModelBase_Accessor model in GetImplementations()) { List <IConversationListItem> conversationListItems = new List <IConversationListItem>(model.ConversationListItems); Assert.AreEqual(0, conversationListItems.Count); Assert.IsNull(model.SelectedConversation); Assert.IsNull(model.ConversationManager); TextConversationStatisticsTest.VerifyStatisticsAllZero(model.ConversationStatistics); } }
public void PopulatedEmptyModelTest() { GraphWindowModel_Accessor model = GetEmptyPopulatedGraphWindowModel(); Assert.AreEqual(GraphWindowModel_Accessor.DefaultGraphType, model._selectedGraphType); Assert.AreEqual(GraphWindowModel_Accessor.DefaultConversationIndex, model.SelectedConversationIndex); int conversationListItemCountActual = new List <IConversationListItem>(model.ConversationListItems).Count; Assert.AreEqual(1, conversationListItemCountActual); Assert.IsNotNull(model.SelectedConversation); TextConversationStatisticsTest.VerifyStatisticsAllZero(model.ConversationStatistics); foreach (ITextGraphData graphData in model.CurrentGraphDataCollection) { Assert.AreEqual(0, graphData.MessagesTotal); } Assert.IsNotNull(model.DisplayOptions); Assert.IsNotNull(model.PhoneSelectOptions); }