public static void CanParseCachedLocalhostValue()
        {
            var parsed = EndpointParser.MakeEndPointSource("localhost", 8125, TimeSpan.FromMinutes(5));

            parsed.ShouldNotBeNull();
            parsed.GetEndpoint().ShouldNotBeNull();
        }
        public static void CanParseLocalhostValue()
        {
            var parsed = EndpointParser.MakeEndPointSource("localhost", 8125, null);

            parsed.ShouldNotBeNull();
            parsed.GetEndpoint().ShouldNotBeNull();
        }
        public static void CanParseIpValue()
        {
            var parsed = EndpointParser.MakeEndPointSource("11.12.13.14", 8125, null);

            parsed.ShouldNotBeNull();

            var expected = new IPEndPoint(new IPAddress(new byte[] { 11, 12, 13, 14 }), 8125);

            parsed.GetEndpoint().ShouldBe(expected);
        }
        public static void CanParseHostValueWithCache()
        {
            var parsed = EndpointParser.MakeEndPointSource("somehost.somewhere.com", 8125, TimeSpan.FromMinutes(5));

            parsed.ShouldNotBeNull();
        }
        public static void CanParseHostValue()
        {
            var parsed = EndpointParser.MakeEndPointSource("somehost.somewhere.com", 8125, null);

            parsed.ShouldNotBeNull();
        }