Esempio n. 1
0
        public void Remove_NonExistingItem_ReturnsKeyNotFoundFailure()
        {
            // Arrange
            var client = new FakeCouchbaseClient();

            // Act
            var result = client.Remove("my_key");

            // Assert
            Assert.That(result, Is.False);
        }
Esempio n. 2
0
        public void Remove_ExistingItem_ReturnsSuccess()
        {
            // Arrange
            var client = new FakeCouchbaseClient();

            client.Store(StoreMode.Add, "my_key", "some value");

            // Act
            var result = client.Remove("my_key");

            // Assert
            Assert.That(result, Is.True);
        }
        public void Remove_NonExistingItem_ReturnsKeyNotFoundFailure()
        {
            // Arrange
            var client = new FakeCouchbaseClient();

            // Act
            var result = client.Remove("my_key");

            // Assert
            Assert.That(result, Is.False);
        }
        public void Remove_ExistingItem_ReturnsSuccess()
        {
            // Arrange
            var client = new FakeCouchbaseClient();
            client.Store(StoreMode.Add, "my_key", "some value");

            // Act
            var result = client.Remove("my_key");

            // Assert
            Assert.That(result, Is.True);
        }