public void ParsingTestTimeDestination() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(6), "443"); }
public void ParsingTestTimeDestinationIp() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(4), "173.194.222.100"); }
public void ParsingTestSource() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(5), "49842"); }
public void ParsingTestSourceIp() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(3), "192.168.8.100"); }
public void ParsingTestTimeLen() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(2), "62"); }
public void ParsingTestInformation() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(7), "-"); }
public void ParsingTestName() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(0), "TCP"); }
public void ParsingTestTime() { var tcp = new TCPParser(); PPacket pack = tcp.Parsing(tcpPacket, time, len); Assert.AreEqual(pack.GetPacket(1), "20:18:32 170"); }