public void GettingExtendedPropertiesOnInvalidBucketReturnsError()
        {
            var           bucketName = string.Format("{0}_{1}", Bucket, "this/is/not/a/valid/bucket");
            RiakException exception  = null;

            try
            {
                var getResult = Client.GetBucketProperties(bucketName);
            }
            catch (RiakException riakException)
            {
                exception = riakException;
            }

            exception.ShouldNotBeNull();
            exception.ErrorCode.ShouldEqual((uint)ResultCode.InvalidRequest);
        }
        public void SettingExtendedPropertiesToBucketWithSlashesInNameShouldReturnError()
        {
            var bucketName = string.Format("{0}_{1}", Bucket, "not/valid/here");
            var props      = new RiakBucketProperties()
                             .SetNVal(4)
                             .SetSearch(true)
                             .SetWVal("all")
                             .SetRVal("quorum");

            RiakException exception = null;

            try
            {
                var getResult = Client.SetBucketProperties(bucketName, props);
            }
            catch (RiakException riakException)
            {
                exception = riakException;
            }

            exception.ShouldNotBeNull();
            exception.ErrorCode.ShouldEqual((uint)ResultCode.InvalidRequest);
        }