public void Get_returns_null_if_key_is_not_found()
        {
            var data = new Dictionary <string, string>
            {
                { "key1", "value1" }
            };
            var carrier = new DictionaryCarrier(data);

            Assert.Null(carrier.Get("invalid"));
        }
        public void Get_throws_if_key_missing()
        {
            var data = new Dictionary <string, string>
            {
                { "key1", "value1" }
            };
            var carrier = new DictionaryCarrier(data);

            Assert.Throws <ArgumentNullException>(() => carrier.Get(null));
        }
        public void Get_returns_correct_value()
        {
            var data = new Dictionary <string, string>
            {
                { "key1", "value1" },
                { "key2", "value2" },
                { "key3", "value3" }
            };
            var carrier = new DictionaryCarrier(data);

            var result = carrier.Get("key2");

            Assert.Equal("value2", result);
        }