public AllocationPoliciesTestsFixture() { ProjectId = _projectId; Assert.False(string.IsNullOrEmpty(ProjectId)); PolicyId = _policyId + TestUtil.RandomName(); string parent = $"projects/{ProjectId}/locations/global"; PolicyName = $"{parent}/allocationPolicies/{PolicyId}"; // Setup var snippet = new CreateAllocationPolicySamples(); Assert.Contains($"Allocation Policy created for {PolicyName}.", snippet.CreateAllocationPolicy(ProjectId, PolicyId)); }
public void TestCreateAllocationPolicy() { var snippet = new CreateAllocationPolicySamples(); Assert.NotNull(fixture.PolicyName); }