本文整理匯總了C#中System.Result.getResultID方法的典型用法代碼示例。如果您正苦於以下問題:C# Result.getResultID方法的具體用法?C# Result.getResultID怎麽用?C# Result.getResultID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Result
的用法示例。
在下文中一共展示了Result.getResultID方法的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");
}