Skip to content

Commit 8406d3e

Browse files
committed
Merge pull request #76 from stankovski/build
Fixed failed unit test
2 parents e0bd618 + 17ef2a2 commit 8406d3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ResourceManager/Resources/Commands.Resources.Test/Models.ResourceGroups/ResourceClientTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ public void SetResourceWithoutExistingResourceThrowsException()
569569
};
570570

571571
resourceOperationsMock.Setup(f => f.GetAsync(resourceGroupName, It.IsAny<ResourceIdentity>(), It.IsAny<CancellationToken>()))
572-
.Returns(() => { throw new CloudException("GenericResourceExtended does not exist."); });
572+
.Returns(() => { throw new CloudException("Resource does not exist."); });
573573

574574
Assert.Throws<ArgumentException>(() => resourcesClient.UpdatePSResource(parameters));
575575
}
@@ -1213,13 +1213,13 @@ public void NewResourceGroupUsesDeploymentNameForDeploymentName()
12131213
Assert.Equal(deploymentName, deploymentName);
12141214
Assert.Equal(ProvisioningState.Succeeded, result.ProvisioningState);
12151215
progressLoggerMock.Verify(
1216-
f => f(string.Format("GenericResourceExtended {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Accepted.ToLower())),
1216+
f => f(string.Format("Resource {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Accepted.ToLower())),
12171217
Times.Once());
12181218
progressLoggerMock.Verify(
1219-
f => f(string.Format("GenericResourceExtended {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Running.ToLower())),
1219+
f => f(string.Format("Resource {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Running.ToLower())),
12201220
Times.Once());
12211221
progressLoggerMock.Verify(
1222-
f => f(string.Format("GenericResourceExtended {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Succeeded.ToLower())),
1222+
f => f(string.Format("Resource {0} '{1}' provisioning status is {2}", "Microsoft.Website", resourceName, ProvisioningState.Succeeded.ToLower())),
12231223
Times.Once());
12241224
}
12251225

0 commit comments

Comments
 (0)