Exemplo n.º 1
0
 public void DnsResourceDataNInfoConstructorTooFewStringsTest()
 {
     var resourceData = new DnsResourceDataNInfo();
     Assert.IsNull(resourceData);
     Assert.Fail();
 }
Exemplo n.º 2
0
 public void DnsResourceDataNInfoParseWrongLengthTest()
 {
     var resourceData = new DnsResourceDataNInfo(new DataSegment(new byte[5]), new DataSegment(new byte[5]));
     TestResourceRecordIsNotCreatedWithNewLength(DnsType.NInfo, resourceData, -1);
     TestResourceRecordIsNotCreatedWithNewLength(DnsType.NInfo, resourceData, -12);
 }
Exemplo n.º 3
0
 public void DnsResourceDataNInfoConstructorNullStringsTest()
 {
     var resourceData = new DnsResourceDataNInfo(null as ReadOnlyCollection<DataSegment>);
     Assert.IsNull(resourceData);
     Assert.Fail();
 }