Exemple #1
0
 public void Icmp_for_StartPing_onSuccess()
 {
     Assert.DoesNotThrow(() =>
     {
         var icmp = new ICMP(_configProtocol);
         icmp.StartAsyncPing();
     });
 }
Exemple #2
0
 public void Icmp_for_StartPing_onEmptyConfigProtocol()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         var configProtocol = new ConfigProtocol();
         configProtocol.AttributesProtocol = new Dictionary <string, string>();
         var icmp = new ICMP(configProtocol);
         icmp.StartAsyncPing();
     });
 }