public void ParsingTestTimeDestination() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(6), "80"); }
public void ParsingTestTimeDestinationIp() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(4), "192.168.8.1"); }
public void ParsingTestSource() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(5), "49826"); }
public void ParsingTestSourceIp() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(3), "192.168.8.100"); }
public void ParsingTestTimeLen() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(2), "602"); }
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"); }
public void ParsingTestName() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(0), "HTTP"); }
public void ParsingTestTime() { var http = new HTTPParser(); PPacket pack = http.Parsing(httpPacket, time, len); Assert.AreEqual(pack.GetPacket(1), "20:18:33 22"); }