예제 #1
0
        public void SetContainerAclWithInvalidContainerNameTest()
        {
            string name = "a";
            BlobContainerPublicAccessType accessLevel = BlobContainerPublicAccessType.Off;

            AssertThrowsAsync <ArgumentException>(() => command.SetContainerAcl(InitTaskId, BlobMock, name, accessLevel), String.Format(Resources.InvalidContainerName, name));
        }
예제 #2
0
        public void SetContainerAclWithInvalidContainerNameTest()
        {
            string name        = "a";
            string accessLevel = StorageNouns.ContainerAclOff;

            AssertThrows <ArgumentException>(() => command.SetContainerAcl(name, accessLevel), String.Format(Resources.InvalidContainerName, name));
        }