Пример #1
0
        public void ParsingTestTimeDestination()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "443");
        }
Пример #2
0
        public void ParsingTestTimeDestinationIp()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "173.194.222.100");
        }
Пример #3
0
        public void ParsingTestSource()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "49842");
        }
Пример #4
0
        public void ParsingTestSourceIp()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "192.168.8.100");
        }
Пример #5
0
        public void ParsingTestTimeLen()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "62");
        }
Пример #6
0
        public void ParsingTestInformation()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(7), "-");
        }
Пример #7
0
        public void ParsingTestName()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "TCP");
        }
Пример #8
0
        public void ParsingTestTime()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:32 170");
        }