Test fixes

This commit is contained in:
Garry Newman 2016-09-28 15:02:03 +01:00
parent a09f30709c
commit a908a9b994

View File

@ -42,6 +42,11 @@ public void InternetList()
Console.WriteLine( "Responded: " + query.Responded.Count.ToString() );
Console.WriteLine( "Unresponsive: " + query.Unresponsive.Count.ToString() );
foreach ( var server in query.Responded.Take( 20 ) )
{
Console.WriteLine( "{0} {1}", server.AddressString, server.Name );
}
query.Dispose();
for ( int i = 0; i < 100; i++ )
@ -313,12 +318,12 @@ public void PlayerList()
query.Dispose();
var server = query.Responded.First( x => x.Players > 5 );
server.UpdateRules();
// var server = query.Responded.First( x => x.Players > 5 );
// server.UpdateRules();
foreach ( var rule in server.Rules )
// foreach ( var rule in server.Rules )
{
Console.WriteLine( rule.Key + " = " + rule.Value );
// Console.WriteLine( rule.Key + " = " + rule.Value );
}
}