public void GetOrNothing_NotContained_NoHasValue()
        {
            var dict = new Dictionary<int, int>();
            var result = dict.GetOrNothing(42);

            Assert.False(result.HasValue);
        }
        public void GetOrNothing_Contained_HasValue()
        {
            var dict = new Dictionary<int, int>
            {
                {42, 43}
            };

            var result = dict.GetOrNothing(42);

            Assert.True(result.HasValue);
        }