예제 #1
0
 public void When_lookup_internal_server_should_get_at_least_one_host()
 {
     //This test assumes a host on the internal network called winxmpp
     var xmppHostsLookup = new XmppHostsLookup();
     var dnsServerLookup = new WmiDnsServerLookup();
     var logger = new ConsoleOutLogger("XmppHostsLookupTests", LogLevel.All, true, true, true, "yyyy-MM-dd HH:MM:SS");
     XmppHost[] xmppHosts = xmppHostsLookup.GetXmppHosts(dnsServerLookup.GetDnsServers(), "winxmpp", logger);
     Assert.NotNull(xmppHosts);
     Assert.InRange(xmppHosts.Length, 1, int.MaxValue);
 }
예제 #2
0
 public void When_lookup_gmail_xmpp_server_should_get_at_least_one_host()
 {
     //This test requires a working internet connection
     var xmppHostsLookup = new XmppHostsLookup();
     var dnsServerLookup = new WmiDnsServerLookup();
     var logger = new ConsoleOutLogger("XmppHostsLookupTests", LogLevel.All, true, true, true, "yyyy-MM-dd HH:MM:SS");
     XmppHost[] xmppHosts = xmppHostsLookup.GetXmppHosts(dnsServerLookup.GetDnsServers(), "gmail.com", logger);
     Assert.NotNull(xmppHosts);
     Assert.InRange(xmppHosts.Length, 1, int.MaxValue);
 }