public void should_use_the_non_default_loopback_ip_as_advertise_info_for_internal() { Assert.AreEqual(new IPEndPoint(IPFinder.GetNonLoopbackAddress(), 1112), _settings.GossipAdvertiseInfo.InternalTcp); Assert.AreEqual(new IPEndPoint(IPFinder.GetNonLoopbackAddress(), 2112), _settings.GossipAdvertiseInfo.InternalHttp); }
public void should_use_the_non_default_loopback_ip_as_advertise_info_for_external() { Assert.AreEqual(new DnsEndPoint(IPFinder.GetNonLoopbackAddress().ToString(), 1113), _settings.GossipAdvertiseInfo.ExternalTcp); Assert.AreEqual(new DnsEndPoint(IPFinder.GetNonLoopbackAddress().ToString(), 2113), _settings.GossipAdvertiseInfo.HttpEndPoint); }