public void Ipv6GlobalStatisticsParsing()
        {
            string fileName = GetTestFilePath();

            FileUtil.NormalizeLineEndings("NetworkFiles/snmp6", fileName);
            IPGlobalStatisticsTable table = StringParsingHelpers.ParseIPv6GlobalStatisticsFromSnmp6File(fileName);

            Assert.Equal(189L, table.InReceives);
            Assert.Equal(0L, table.InHeaderErrors);
            Assert.Equal(2000L, table.InAddressErrors);
            Assert.Equal(42L, table.InUnknownProtocols);
            Assert.Equal(0L, table.InDiscards);
            Assert.Equal(189L, table.InDelivers);
            Assert.Equal(55L, table.ForwardedDatagrams);
            Assert.Equal(199L, table.OutRequests);
            Assert.Equal(0L, table.OutDiscards);
            Assert.Equal(53L, table.OutNoRoutes);
            Assert.Equal(2121L, table.ReassemblyTimeout);
            Assert.Equal(1L, table.ReassemblyRequireds);
            Assert.Equal(2L, table.ReassemblyOKs);
            Assert.Equal(4L, table.ReassemblyFails);
            Assert.Equal(8L, table.FragmentOKs);
            Assert.Equal(16L, table.FragmentFails);
            Assert.Equal(32L, table.FragmentCreates);
        }
        public void Ipv4GlobalStatisticsParsing()
        {
            string fileName = GetTestFilePath();

            FileUtil.NormalizeLineEndings("NetworkFiles/snmp", fileName);
            IPGlobalStatisticsTable table = StringParsingHelpers.ParseIPv4GlobalStatisticsFromSnmpFile(fileName);

            Assert.False(table.Forwarding);
            Assert.Equal(64L, table.DefaultTtl);
            Assert.Equal(28121L, table.InReceives);
            Assert.Equal(0L, table.InHeaderErrors);
            Assert.Equal(2L, table.InAddressErrors);
            Assert.Equal(0L, table.ForwardedDatagrams);
            Assert.Equal(0L, table.InUnknownProtocols);
            Assert.Equal(0L, table.InDiscards);
            Assert.Equal(28117L, table.InDelivers);
            Assert.Equal(24616L, table.OutRequests);
            Assert.Equal(48L, table.OutDiscards);
            Assert.Equal(0L, table.OutNoRoutes);
            Assert.Equal(0L, table.ReassemblyTimeout);
            Assert.Equal(0L, table.ReassemblyRequireds);
            Assert.Equal(1L, table.ReassemblyOKs);
            Assert.Equal(2L, table.ReassemblyFails);
            Assert.Equal(14L, table.FragmentOKs);
            Assert.Equal(0L, table.FragmentFails);
            Assert.Equal(92L, table.FragmentCreates);
        }
        public static void Ipv4GlobalStatisticsParsing()
        {
            FileUtil.NormalizeLineEndings("snmp", "snmp_normalized4");
            IPGlobalStatisticsTable table = StringParsingHelpers.ParseIPv4GlobalStatisticsFromSnmpFile("snmp_normalized4");

            Assert.Equal(false, table.Forwarding);
            Assert.Equal(64, table.DefaultTtl);
            Assert.Equal(28121, table.InReceives);
            Assert.Equal(0, table.InHeaderErrors);
            Assert.Equal(2, table.InAddressErrors);
            Assert.Equal(0, table.ForwardedDatagrams);
            Assert.Equal(0, table.InUnknownProtocols);
            Assert.Equal(0, table.InDiscards);
            Assert.Equal(28117, table.InDelivers);
            Assert.Equal(24616, table.OutRequests);
            Assert.Equal(48, table.OutDiscards);
            Assert.Equal(0, table.OutNoRoutes);
            Assert.Equal(0, table.ReassemblyTimeout);
            Assert.Equal(0, table.ReassemblyRequireds);
            Assert.Equal(1, table.ReassemblyOKs);
            Assert.Equal(2, table.ReassemblyFails);
            Assert.Equal(14, table.FragmentOKs);
            Assert.Equal(0, table.FragmentFails);
            Assert.Equal(92, table.FragmentCreates);
        }
        public static void Ipv6GlobalStatisticsParsing()
        {
            FileUtil.NormalizeLineEndings("snmp6", "snmp6_normalized2");
            IPGlobalStatisticsTable table = StringParsingHelpers.ParseIPv6GlobalStatisticsFromSnmp6File("snmp6_normalized2");

            Assert.Equal(189, table.InReceives);
            Assert.Equal(0, table.InHeaderErrors);
            Assert.Equal(2000, table.InAddressErrors);
            Assert.Equal(42, table.InUnknownProtocols);
            Assert.Equal(0, table.InDiscards);
            Assert.Equal(189, table.InDelivers);
            Assert.Equal(55, table.ForwardedDatagrams);
            Assert.Equal(199, table.OutRequests);
            Assert.Equal(0, table.OutDiscards);
            Assert.Equal(53, table.OutNoRoutes);
            Assert.Equal(2121, table.ReassemblyTimeout);
            Assert.Equal(1, table.ReassemblyRequireds);
            Assert.Equal(2, table.ReassemblyOKs);
            Assert.Equal(4, table.ReassemblyFails);
            Assert.Equal(8, table.FragmentOKs);
            Assert.Equal(16, table.FragmentFails);
            Assert.Equal(32, table.FragmentCreates);
        }