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

            Assert.AreEqual(pack.GetPacket(6), "80");
        }
Beispiel #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");
        }
Beispiel #3
0
        public void ParsingTestSource()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "49826");
        }
Beispiel #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");
        }
Beispiel #5
0
        public void ParsingTestTimeLen()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "602");
        }
Beispiel #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");
        }
Beispiel #7
0
        public void ParsingTestName()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "HTTP");
        }
Beispiel #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");
        }