public void GetValueKey()
        {
            var intervalDictionary = new IntervalDictionary <int, string>
            {
                { new Interval <int>(5, 10), "5 - 10" },
                { new Interval <int>(15, 20), "15 - 20" },
                { new Interval <int>(25, 25), "25 - 25" }
            };

            Assert.AreEqual("15 - 20", intervalDictionary.GetValue(15));
            Assert.AreEqual("15 - 20", intervalDictionary.GetValue(17));
            Assert.AreEqual("25 - 25", intervalDictionary.GetValue(25));
        }
        public void GetValueKeyException()
        {
            var intervalDictionary = new IntervalDictionary <int, string>
            {
                { new Interval <int>(5, 10), "5 - 10" },
                { new Interval <int>(15, 20), "15 - 20" },
                { new Interval <int>(25, 25), "25 - 25" }
            };

            intervalDictionary.GetValue(30);
        }
        public void TryGetValueIntervalArgumentNullException()
        {
            var intervalDictionary = new IntervalDictionary <int, string>
            {
                { new Interval <int>(5, 10), "5 - 10" },
                { new Interval <int>(15, 20), "15 - 20" },
                { new Interval <int>(25, 25), "25 - 25" }
            };

            intervalDictionary.GetValue(null);
        }
        public void TryGetValueBoundArgumentNullException()
        {
            var intervalDictionary = new IntervalDictionary <string, string>
            {
                {
                    new Interval <string>("a", "c"),
                    "a - c"
                },
                {
                    new Interval <string>("h", "j"),
                    "h - j"
                },
                {
                    new Interval <string>("x", "z"),
                    "x - z"
                }
            };

            intervalDictionary.GetValue(key: null);
        }
        public void TryGetValueIntervalArgumentNullException()
        {
            var intervalDictionary = new IntervalDictionary<int, string>
                                         {
                                             { new Interval<int>(5, 10), "5 - 10" },
                                             { new Interval<int>(15, 20), "15 - 20" },
                                             { new Interval<int>(25, 25), "25 - 25" }
                                         };

            intervalDictionary.GetValue(null);
        }
        public void TryGetValueBoundArgumentNullException()
        {
            var intervalDictionary = new IntervalDictionary<string, string>
                                         {
                                             {
                                                 new Interval<string>("a", "c"),
                                                 "a - c"
                                             },
                                             {
                                                 new Interval<string>("h", "j"),
                                                 "h - j"
                                             },
                                             {
                                                 new Interval<string>("x", "z"),
                                                 "x - z"
                                             }
                                         };

            intervalDictionary.GetValue(key: null);
        }
        public void GetValueKeyException()
        {
            var intervalDictionary = new IntervalDictionary<int, string>
                                         {
                                             { new Interval<int>(5, 10), "5 - 10" },
                                             { new Interval<int>(15, 20), "15 - 20" },
                                             { new Interval<int>(25, 25), "25 - 25" }
                                         };

            intervalDictionary.GetValue(30);
        }
        public void GetValueKey()
        {
            var intervalDictionary = new IntervalDictionary<int, string>
                                         {
                                             { new Interval<int>(5, 10), "5 - 10" },
                                             { new Interval<int>(15, 20), "15 - 20" },
                                             { new Interval<int>(25, 25), "25 - 25" }
                                         };

            Assert.AreEqual("15 - 20", intervalDictionary.GetValue(15));
            Assert.AreEqual("15 - 20", intervalDictionary.GetValue(17));
            Assert.AreEqual("25 - 25", intervalDictionary.GetValue(25));
        }