public void TestIPv6Values() { ForeFlightNetworkOption ffno = new ForeFlightNetworkOption(NetworkTypes.IPv6LinkLocal, IPAddress.Parse("0.0.0.1")); Assert.AreEqual(IPAddress.IPv6Any, ffno.Address); Assert.AreEqual(NetworkTypes.IPv6LinkLocal, ffno.NetworkType); Assert.AreEqual(ForeFlightNetworkOption.IPV6_STRING, ffno.ToString()); }
public void TestDirectIPValues() { ForeFlightNetworkOption ffno = new ForeFlightNetworkOption(NetworkTypes.DirectIPv4, IPAddress.Parse("0.0.0.1")); Assert.AreEqual(IPAddress.Loopback, ffno.Address); Assert.AreEqual(NetworkTypes.DirectIPv4, ffno.NetworkType); Assert.AreEqual(ForeFlightNetworkOption.DIRECT_STRING, ffno.ToString()); }
public void TestIPv4NetworkValues() { IPAddress addr = IPAddress.Parse("0.0.0.1"); ForeFlightNetworkOption ffno = new ForeFlightNetworkOption(NetworkTypes.IPv4NetworkBroadcast, addr); Assert.AreEqual(addr, ffno.Address); Assert.AreEqual(NetworkTypes.IPv4NetworkBroadcast, ffno.NetworkType); Assert.AreEqual(ForeFlightNetworkOption.IPV4_BROADCAST_STRING_PREFIX + "0.0.0.1", ffno.ToString()); }