public void Icmp_for_StartPing_onSuccess() { Assert.DoesNotThrow(() => { var icmp = new ICMP(_configProtocol); icmp.StartAsyncPing(); }); }
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(); }); }