public async Task GetIPReportKnownIPv4() { IgnoreMissingJson("detected_referrer_samples[array] / Date"); IPReport report = await VirusTotal.GetIPReportAsync(TestData.KnownIPv4s.First()); Assert.Equal(IPReportResponseCode.Present, report.ResponseCode); }
public async Task GetIPReportUnknownIPv4() { //Unknown hosts do not have all this in the response IgnoreMissingJson(" / undetected_urls", " / as_owner", " / ASN", " / Country", " / detected_communicating_samples", " / detected_downloaded_samples", " / detected_referrer_samples", " / detected_urls", " / Resolutions", " / undetected_communicating_samples", " / undetected_downloaded_samples", " / undetected_referrer_samples"); IPReport report = await VirusTotal.GetIPReportAsync("128.168.238.14"); Assert.Equal(IPReportResponseCode.NotPresent, report.ResponseCode); }
public async Task GetIPReportRandomIPv6() { //IPv6 is not supported await Assert.ThrowsAsync <InvalidResourceException>(async() => await VirusTotal.GetIPReportAsync(TestData.GetRandomIPv6s(1).First())); }
public async Task GetIPReportKnownIPv4() { IPReport report = await VirusTotal.GetIPReportAsync(TestData.KnownIPv4s.First()); Assert.Equal(IPReportResponseCode.Present, report.ResponseCode); }