예제 #1
0
파일: DnsTests.cs 프로젝트: preyea/Pcap.Net
 public void DnsResourceDataLocationInformationParseWrongLengthTest()
 {
     var resourceData = new DnsResourceDataLocationInformation(0, 1000, 2000, 3000, 100, 200, 300);
     TestResourceRecordIsNotCreatedWithNewLength(DnsType.Location, resourceData, 1);
 }
예제 #2
0
파일: DnsTests.cs 프로젝트: preyea/Pcap.Net
 public void DnsResourceDataLocationInformationInvalidVerticalPrecisionTest()
 {
     var resourceData = new DnsResourceDataLocationInformation(0, 0, 0, 9000000001L, 0, 0, 0);
     Assert.IsNull(resourceData);
     Assert.Fail();
 }