コード例 #1
0
        public void ParsingTestSource()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "-");
        }
コード例 #2
0
        public void ParsingTestTimeDestination()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "-");
        }
コード例 #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");
        }
コード例 #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");
        }
コード例 #5
0
        public void ParsingTestTimeLen()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "86");
        }
コード例 #6
0
        public void ParsingTestName()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "ICMPv6");
        }
コード例 #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");
        }