public void ParseItemFromDatabaseTest()
        {
            MockChatRoomDatabaseReader mockDatabaseReader = new MockChatRoomDatabaseReader();
            mockDatabaseReader.AddRow("chat901258305184729544", _ParticipantsData);
            ChatRoomInformationReader_Accessor target = new ChatRoomInformationReader_Accessor();
            target.ParseDatabase(mockDatabaseReader);

            ChatRoomInformation expected = new ChatRoomInformation("chat901258305184729544", new string[] { "+15402392304", "+12068189288" });
            ChatRoomInformation actual = target.ParseItemFromDatabase(mockDatabaseReader);
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void ParseItemFromDatabaseTest()
        {
            MockChatRoomDatabaseReader mockDatabaseReader = new MockChatRoomDatabaseReader();

            mockDatabaseReader.AddRow("chat901258305184729544", _ParticipantsData);
            ChatRoomInformationReader_Accessor target = new ChatRoomInformationReader_Accessor();

            target.ParseDatabase(mockDatabaseReader);

            ChatRoomInformation expected = new ChatRoomInformation("chat901258305184729544", new string[] { "+15402392304", "+12068189288" });
            ChatRoomInformation actual   = target.ParseItemFromDatabase(mockDatabaseReader);

            Assert.AreEqual(expected, actual);
        }