public void GetAzureDnsRecordSetThrowsExceptionWhenUsingNameAndEndsWith() { var cmdlet = new GetAzureDnsRecordSet { Name = "record", ZoneName = "zone.com", ResourceGroupName = "resourceGroup", Zone = new DnsZone { Name = "zone.com", ResourceGroupName = "resourceGroup" }, RecordType = "A", EndsWith = ".com." }; Assert.Throws<PSArgumentException>(() => cmdlet.ExecuteCmdlet()); }
public void GetAzureDnsRecordSetThrowsExceptionWhenUsingNameAndEndsWith() { var cmdlet = new GetAzureDnsRecordSet { Name = "record", ZoneName = "zone.com", ResourceGroupName = "resourceGroup", Zone = new DnsZone { Name = "zone.com", ResourceGroupName = "resourceGroup" }, RecordType = "A", EndsWith = ".com." }; Assert.Throws <PSArgumentException>(() => cmdlet.ExecuteCmdlet()); }