public void UpdateDesignDocument_DoesNotExist_Success() { // Arrange // ensure that the design document doesn't exist (ignore failure) _bucketManager.RemoveDesignDocument("test"); // Act var result = _bucketManager.UpdateDesignDocument("test", JsonConvert.SerializeObject(DesignDoc)); // Assert Assert.NotNull(result); Assert.True(result.Success); // Cleanup var removeResult = _bucketManager.RemoveDesignDocument("test"); Assert.True(removeResult.Success); }
public void UpdateDesignDocument_Throws_NotSupportedException() { Assert.Throws <NotSupportedException>(() => _bucketManager.UpdateDesignDocument("test", It.IsAny <string>())); }