本文整理汇总了C#中System.Result.getUrl方法的典型用法代码示例。如果您正苦于以下问题:C# Result.getUrl方法的具体用法?C# Result.getUrl怎么用?C# Result.getUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Result
的用法示例。
在下文中一共展示了Result.getUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: test1
public static void test1()
{
Result res = new Result("0000-92", "www.alexa.com", "000-52", 54, 78);
if (res.getResultID() != "0000-92")
System.Console.WriteLine("Error @ Result.getResultID: Out <{1}> ,Expected <{2}>", res.getResultID(), "0000-92");
else System.Console.WriteLine("Success @ Result.getResultID");
if (res.getUrl() != "www.alexa.com")
System.Console.WriteLine("Error @ Result.getUrl: Out <{1}> ,Expected <{2}>", res.getUrl(), "www.alexa.com");
else System.Console.WriteLine("Success @ Result.getUrl");
if (res.getCategoryID() != "000-52")
System.Console.WriteLine("Error @ Result.getCategoryID: Out <{1}> ,Expected <{2}>", res.getUrl(), "000-52");
else System.Console.WriteLine("Success @ Result.getCategoryID");
if (res.getRank() != 54)
System.Console.WriteLine("Error @ Result.getRank: Out <{1}> ,Expected <{2}>", res.getRank(), 54);
else System.Console.WriteLine("Success @ Result.getRank");
if (res.getTrustMeter() != 78)
System.Console.WriteLine("Error @ Result.getTrustMeter: Out <{1}> ,Expected <{2}>", res.getTrustMeter(), 78);
else System.Console.WriteLine("Success @ Result.getTrustMeter");
}