public void TestUpdateByRandomKey() { var randomKey = Guid.NewGuid().ToString(); var exception = Assert.Catch <KeyValueRepositoryException>(() => keyValueRepository.Update(randomKey, "value")); exception.Should().NotBeNull(); }