public void ParsingTestSource() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(5), "0C5B8F279A64"); }
public void ParsingTestTimeDestination() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(6), "FFFFFFFFFFFF"); }
public void ParsingTestTimeDestinationIp() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(4), "169.254.169.254"); }
public void ParsingTestSourceIp() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(3), "192.168.8.100"); }
public void ParsingTestTimeLen() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(2), "42"); }
public void ParsingTestName() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(0), "Ethernet"); }
public void ParsingTestTime() { var ethernet = new EthernetParser(); PPacket pack = ethernet.Parsing(ethernetPacket, time, len); Assert.AreEqual(pack.GetPacket(1), "20:18:32 160"); }