public void ReadMapsOnly1() { var domain = new DomainValue(Example_mapsonly1); domain.ImportDefaultMap(); IPAddress expected = new IPAddress(new byte[] { 1, 1, 1, 1 }); Assert.AreEqual(expected, domain.Ips.Single()); }
public void ReadMapsOnly2() { var domain = new DomainValue(Example_mapsonly2); domain.ImportDefaultMap(); IPAddress expectedIp1 = new IPAddress(new byte[] { 10, 2, 3, 4 }); IPAddress expectedIp2 = new IPAddress(new byte[] { 10, 4, 3, 2 }); int expectedNsCount = 2; Assert.AreEqual(expectedIp1, domain.Ips.First()); Assert.AreEqual(expectedIp2, domain.Ips.Last()); Assert.AreEqual(expectedNsCount, domain.Ns.Count()); }