public void ContainsKey_GivenNullKey_ThrowsException()
        {
            // arrange
            var sut = new MemoryBackingStore();

            // assert
            Assert.Throws<ArgumentNullException>(() => sut.ContainsKey(null));
        }
        public void ContainsKey_GivenNonExistingKey_ReturnsFalse()
        {
            // arrange
            var sut = new MemoryBackingStore();

            // act
            var containsKey = sut.ContainsKey("someKeyThatDoesn'tExist");

            // assert
            Assert.That(containsKey, Is.False);
        }
        [Test] // silently tests MemoryBackingStore.Add as well
        public void ContainsKey_GivenExistingKey_ReturnsTrue()
        {
            // arrange
            var sut = new MemoryBackingStore();
            sut.Add("ThisKeyExists", new object());

            // act
            var containsKey = sut.ContainsKey("ThisKeyExists");

            // assert
            Assert.That(containsKey, Is.True);
        }