public void When_srv_query_returns_response_should_return_XmppHosts() { const string domain = "gmail.com"; var xmppDns = new XmppDns(_logger); XmppHost[] xmppHosts = xmppDns.GetXmppHosts(domain).ToArray(); Assert.NotNull(xmppHosts); Assert.True(xmppHosts.Length > 1); Assert.AreEqual(domain, xmppHosts[xmppHosts.Length - 1].HostName); }
public void When_query_returns_last_entry_should_be_domain() { const string domain = "domain.com"; var xmppDns = new XmppDns(_logger); XmppHost[] xmppHosts = xmppDns.GetXmppHosts(domain).ToArray(); Assert.NotNull(xmppHosts); Assert.True(xmppHosts.Length >= 1); Assert.AreEqual(domain, xmppHosts[xmppHosts.Length - 1].HostName); }