public void IsIPLookback_GivenNoIPAddress_ReturnsFalse() { var maddr = new Multiaddress(); Assert.That(maddr.IsIPLoopback(), Is.False); }
public void IsIPLoopback_GivenIP6NoLoopbackAddress_ReturnsFalse() { var maddr = new Multiaddress().Add <IP6>(IPAddress.Parse("fe80::5066:4785:4a2:a9b7")); Assert.That(maddr.IsIPLoopback(), Is.False); }
public void IsIPLoopback_GivenIP6LoopbackAddress_ReturnsTrue() { var maddr = new Multiaddress().Add <IP6>(IPAddress.IPv6Loopback); Assert.That(maddr.IsIPLoopback(), Is.True); }
public void IsIPLoopback_GivenIP4NoLoopbackAddress_ReturnsFalse() { var maddr = new Multiaddress().Add <IP4>(IPAddress.Parse("192.168.0.1")); Assert.That(maddr.IsIPLoopback(), Is.False); }
public void IsIPLoopback_GivenIP4LoopbackAddress_ReturnsTrue() { var maddr = new Multiaddress().Add <IP4>(IPAddress.Loopback); Assert.True(maddr.IsIPLoopback()); }