本文整理汇总了C#中Poker.GetSelectArguments方法的典型用法代码示例。如果您正苦于以下问题:C# Poker.GetSelectArguments方法的具体用法?C# Poker.GetSelectArguments怎么用?C# Poker.GetSelectArguments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Poker
的用法示例。
在下文中一共展示了Poker.GetSelectArguments方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Repeater_DefaultsSelectArguments
public void Repeater_DefaultsSelectArguments ()
{
Poker p = new Poker ();
DataSourceSelectArguments args, args2;
args = p.GetSelectArguments();
args2 = p.DoCreateDataSourceSelectArguments();
Assert.AreEqual (args, args2, "call == prop");
Assert.IsNotNull (args, "property null check");
Assert.IsTrue (args != DataSourceSelectArguments.Empty, "property != Empty check");
Assert.IsTrue (args.Equals (DataSourceSelectArguments.Empty), "property but they are empty check");
Assert.IsNotNull (args2, "method null check");
Assert.IsTrue (args2 != DataSourceSelectArguments.Empty, "method != Empty check");
Assert.IsTrue (args2.Equals (DataSourceSelectArguments.Empty), "method but they are empty check");
/* check to see whether multiple calls give us different refs */
args = p.DoCreateDataSourceSelectArguments();
Assert.AreEqual (args, args2, "multiple calls, same ref");
Assert.AreEqual (string.Empty, p.DataSourceID, "DataSourceID");
Assert.AreEqual (false, p.RequiresDataBinding, "RequiresDataBinding");
}