mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 14:41:26 +08:00
798355e342
新增反代脚本只对Steam内置浏览器生效的选项
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
|
|
namespace SteamTool.Proxy.Test
|
|
{
|
|
[TestClass]
|
|
public class TestDnsResolution
|
|
{
|
|
[TestMethod]
|
|
public void TestResolutionDomainIp()
|
|
{
|
|
var result = DnsResolution.ResolutionDomainIp("steamcommunity-a.akamaihd.net");
|
|
Console.WriteLine(result.ToString());
|
|
}
|
|
|
|
[TestMethod]
|
|
public void TestResolutionDomainIpByGoogleDns()
|
|
{
|
|
var result = DnsResolution.ResolutionDomainIpByGoogleDns("steamcommunity-a.akamaihd.net");
|
|
Console.WriteLine(result.ToString());
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
public void TestPingDomain()
|
|
{
|
|
var result = DnsResolution.PingDomain("steamcommunity-a.akamaihd.net");
|
|
Console.WriteLine(result.ToString());
|
|
}
|
|
|
|
[TestMethod]
|
|
public void TestGetHostByIPAddress()
|
|
{
|
|
var result = DnsResolution.GetHostByIPAddress("162.159.137.232");
|
|
Console.WriteLine(result.ToString());
|
|
}
|
|
}
|
|
}
|