public void ParsingTestSource() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(5), "-"); }
public void ParsingTestTimeDestination() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(6), "-"); }
public void ParsingTestTimeDestinationIp() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(4), "fe80::76c1:4fff:fefe:1b89"); }
public void ParsingTestSourceIp() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(3), "fe80::d1ec:8061:eeaf:3c78"); }
public void ParsingTestTimeLen() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(2), "86"); }
public void ParsingTestName() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(0), "ICMPv6"); }
public void ParsingTestTime() { var icmp = new ICMPParser(); PPacket pack = icmp.Parsing(icmpPacket, time, len); Assert.AreEqual(pack.GetPacket(1), "20:18:32 660"); }