Exemplo n.º 1
0
        public void ParsingTestSource()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "-");
        }
Exemplo n.º 2
0
        public void ParsingTestTimeDestination()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "-");
        }
Exemplo n.º 3
0
        public void ParsingTestTimeDestinationIp()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "fe80::76c1:4fff:fefe:1b89");
        }
Exemplo n.º 4
0
        public void ParsingTestSourceIp()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "fe80::d1ec:8061:eeaf:3c78");
        }
Exemplo n.º 5
0
        public void ParsingTestTimeLen()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "86");
        }
Exemplo n.º 6
0
        public void ParsingTestName()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "ICMPv6");
        }
Exemplo n.º 7
0
        public void ParsingTestTime()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:32 660");
        }