public void SetContainerAclWithInvalidContainerNameTest() { string name = "a"; BlobContainerPublicAccessType accessLevel = BlobContainerPublicAccessType.Off; AssertThrowsAsync <ArgumentException>(() => command.SetContainerAcl(InitTaskId, BlobMock, name, accessLevel), String.Format(Resources.InvalidContainerName, name)); }
public void SetContainerAclWithInvalidContainerNameTest() { string name = "a"; string accessLevel = StorageNouns.ContainerAclOff; AssertThrows <ArgumentException>(() => command.SetContainerAcl(name, accessLevel), String.Format(Resources.InvalidContainerName, name)); }