public void BCTest_bitcoin_btc1_pcapng()
        {
            this.FrameworkController.ProcessCapture(this.PrepareCaptureForProcessing(SnoopersPcaps.Default.bitcoin_btc1_pcapng));

            var conversations = this.L7Conversations.ToArray();

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

            SnooperExportBTC exportedObjectsReference = null;

            foreach (var exportedObjects in this.SnooperExports.ToArray()) //Get BTCSnooper exported objects
            {
                if ((exportedObjects is SnooperExportBTC) && (exportedObjects.TimeStampFirst.ToString().Equals("26.2.2015 8:55:07")) && ((SnooperExportBTC)exportedObjects).ExportObjects.Count > 0)
                {
                    exportedObjectsReference = (SnooperExportBTC)exportedObjects;
                    break;
                }
            }
            Assert.IsNotNull(exportedObjectsReference);

            var objs = exportedObjectsReference.ExportObjects.ToArray();

            Assert.AreEqual(1, objs.Length);

            Assert.AreEqual(((SnooperExportedDataObjectBTC)objs[0]).StateString, "Full handshake");
            Assert.AreEqual(((SnooperExportedDataObjectBTC)objs[0]).TypeString, "Registration");
            Assert.AreEqual(((SnooperExportedDataObjectBTC)objs[0]).UserAgentsString, "/Satoshi:0.10.0/");
            Assert.AreEqual(((SnooperExportedDataObjectBTC)objs[0]).TimeStamp.ToString(new CultureInfo("cs-CZ", false)), "26.02.2015 8:55:07");
        }
        public void BCTest_bitcoin_btc1_part1_pcapng()
        {
            this.FrameworkController.ProcessCapture(this.PrepareCaptureForProcessing(SnoopersPcaps.Default.bitcoin_btc1_part1_pcapng));

            var conversations = this.L7Conversations.ToArray();

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

            SnooperExportBTC exportedObjectsReference = null;

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

            var exportedObjectBases = exportedObjectsReference.ExportObjects.ToArray();

            Assert.AreEqual(1, exportedObjectBases.Length);

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

            Assert.AreEqual(1, messages.Length);

            Assert.AreEqual(messages[0].StateString, "Half handshake (only response)");
            Assert.AreEqual(messages[0].TypeString, "Registration");
            Assert.AreEqual(messages[0].TimeStamp.ToString(new CultureInfo("cs-CZ", false)), "26.02.2015 8:55:08");
        }