示例#1
0
        public void ParsingTestTimeDestination()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "80");
        }
示例#2
0
        public void ParsingTestTimeDestinationIp()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "192.168.8.1");
        }
示例#3
0
        public void ParsingTestSource()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "49826");
        }
示例#4
0
        public void ParsingTestSourceIp()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "192.168.8.100");
        }
示例#5
0
        public void ParsingTestTimeLen()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "602");
        }
示例#6
0
        public void ParsingTestInformation()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(7), "GET /lib/jquery.qtip.css HTTP/1.1\r");
        }
示例#7
0
        public void ParsingTestName()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "HTTP");
        }
示例#8
0
        public void ParsingTestTime()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:33 22");
        }