public void MinecraftTest_minecraft_xberan33_02_via_FrameworkController2()
        {
            this.FrameworkController.ProcessCapture(this.PrepareCaptureForProcessing(SnoopersPcaps.Default.minecraft_xberan33_minecraft_tell_cs_pcap));
            var conversations = this.L7Conversations.Where(c => c.IsXyProtocolConversation("Minecraft")).ToArray();

            this.FrameworkController.ExportData(this.AvailableSnoopers, conversations, this.CurrentTestBaseDirectory, true);

            SnooperExportMinecraft exportedObjectsReference = null;

            foreach (var exportedObjects in this.SnooperExports.ToArray()) //Get MinecraftSnooper exported objects
            {
                if ((exportedObjectsReference = exportedObjects as SnooperExportMinecraft) != null)
                {
                    break;
                }
            }
            Assert.IsNotNull(exportedObjectsReference);

            var exportedObjectBases = exportedObjectsReference.ExportObjects.ToArray();

            Assert.AreEqual(1, exportedObjectBases.Length);

            var messages = exportedObjectBases.Where(i => i is SnooperExportedMinecraftMessage).Cast <SnooperExportedMinecraftMessage>().OrderBy(it => it.TimeStamp).ToArray();

            Assert.AreEqual(1, messages.Length); //Every exported object should be private message

            Assert.AreEqual(messages[0].TimeStamp.ToString(new CultureInfo("cs-CZ", false)), "22.03.2015 14:32:55");
            Assert.AreEqual(messages[0].Message, "To buggy08: cs");
            Assert.AreEqual(messages[0].Sender, "");
            Assert.AreEqual(messages[0].Receiver, "buggy08: c");
        }
        public void MinecraftTest_minecraft_xberan33_01_via_FrameworkController2()
        {
            var messagePatterns = new[]
            {
                new[] { "02.12.2014 18:21:05", "[G] [VIP] Eneris: asdas" },
                new[] { "02.12.2014 18:21:06", "[G] [VIP] Faelon: cau" },
                new[] { "02.12.2014 18:21:12", "[G] [VIP] Faelon: koukam vsichni jsme vip" },
                new[] { "02.12.2014 18:21:17", "[G] [VIP] Eneris: hasdjkasldasjkda" },
                new[] { "02.12.2014 18:21:22", "[G] [VIP] Faelon: nj blazen ses :D" },
                new[] { "02.12.2014 18:21:26", "[G] [VIP] Eneris: hua hua" },
                new[] { "02.12.2014 18:21:27", "[G] [VIP] Faelon: asdfx" },
                new[] { "02.12.2014 18:21:30", "[G] [VIP] Eneris: hihihi" },
                new[] { "02.12.2014 18:21:32", "[G] [VIP] Faelon: :)" },
                new[] { "02.12.2014 18:21:36", "[G] [VIP] Eneris: hihihahahohohu" },
                new[] { "02.12.2014 18:21:37", "[G] [VIP] Faelon: ok konec" }
            };

            this.FrameworkController.ProcessCapture(this.PrepareCaptureForProcessing(SnoopersPcaps.Default.minecraft_xberan33_minecraft_search_asd_pcap));
            var conversations = this.L7Conversations.Where(c => c.IsXyProtocolConversation("Minecraft")).ToArray();

            this.FrameworkController.ExportData(this.AvailableSnoopers, conversations, this.CurrentTestBaseDirectory, true);

            //Assert.IsTrue(this.SnooperExports.Count == 1);

            SnooperExportMinecraft exportedObjectsReference = null;

            foreach (var exportedObjects in this.SnooperExports.ToArray()) //Get MinecraftSnooper exported objects
            {
                if ((exportedObjectsReference = exportedObjects as SnooperExportMinecraft) != null)
                {
                    break;
                }
            }
            Assert.IsNotNull(exportedObjectsReference);

            var exportedObjectBases = exportedObjectsReference.ExportObjects.ToArray();

            Assert.AreEqual(11, exportedObjectBases.Length);

            var messages = exportedObjectBases.Where(i => i is SnooperExportedMinecraftMessage).Cast <SnooperExportedMinecraftMessage>().OrderBy(it => it.TimeStamp).ToArray();

            Assert.AreEqual(11, messages.Length); //Every exported object should be private message
            Assert.AreEqual(messagePatterns.Length, messages.Length);

            for (var i = 0; i < messages.Length; i++)
            {
                Assert.AreEqual(messages[i].TimeStamp.ToString(new CultureInfo("cs-CZ", false)), messagePatterns[i][0]);
                Assert.AreEqual(messages[i].Message, messagePatterns[i][1]);
            }
            //Assert.IsTrue(this.SnooperExports.First().ExportObjects.Count == 11);
        }