public void DnsResourceDataCertificationAuthorityAuthorizationConstructorNullTagTest() { var resourceData = new DnsResourceDataCertificationAuthorityAuthorization(DnsCertificationAuthorityAuthorizationFlags.Critical, null, DataSegment.Empty); Assert.IsNull(resourceData); Assert.Fail(); }
public void DnsResourceDataCertificationAuthorityAuthorizationParseWrongLengthTest() { var resourceData = new DnsResourceDataCertificationAuthorityAuthorization(DnsCertificationAuthorityAuthorizationFlags.Critical, new DataSegment(new byte[5]), new DataSegment(new byte[5])); TestResourceRecordIsNotCreatedWithNewLength(DnsType.CertificationAuthorityAuthorization, resourceData, -6); TestResourceRecordIsNotCreatedWithNewLength(DnsType.CertificationAuthorityAuthorization, resourceData, -11); }
public void DnsResourceDataCertificationAuthorityAuthorizationTagTooBigTest() { var resourceData = new DnsResourceDataCertificationAuthorityAuthorization(DnsCertificationAuthorityAuthorizationFlags.Critical, new DataSegment(new byte[byte.MaxValue + 1]), DataSegment.Empty); Assert.IsNull(resourceData); Assert.Fail(); }