当前位置: 首页>>代码示例>>C#>>正文


C# Contract.RoundPoints方法代码示例

本文整理汇总了C#中Contract.RoundPoints方法的典型用法代码示例。如果您正苦于以下问题:C# Contract.RoundPoints方法的具体用法?C# Contract.RoundPoints怎么用?C# Contract.RoundPoints使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Contract的用法示例。


在下文中一共展示了Contract.RoundPoints方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NoTrump260

 public void NoTrump260()
 {
     var contract = new Contract(PlayerPosition.South, ContractType.NoTrumps);
     var roundedPoints = contract.RoundPoints(260, true);
     Assert.AreEqual(26, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例2: NoTrump0

 public void NoTrump0()
 {
     var contract = new Contract(PlayerPosition.East, ContractType.NoTrumps);
     var roundedPoints = contract.RoundPoints(0, true);
     Assert.AreEqual(0, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例3: NoTrump136

 public void NoTrump136()
 {
     var contract = new Contract(PlayerPosition.North, ContractType.NoTrumps);
     var roundedPoints = contract.RoundPoints(136, false);
     Assert.AreEqual(14, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例4: AllTrump258

 public void AllTrump258()
 {
     var contract = new Contract(PlayerPosition.West, ContractType.AllTrumps);
     var roundedPoints = contract.RoundPoints(258, false);
     Assert.AreEqual(26, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例5: AllTrump3

 public void AllTrump3()
 {
     var contract = new Contract(PlayerPosition.East, ContractType.AllTrumps);
     var roundedPoints = contract.RoundPoints(3, false);
     Assert.AreEqual(0, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例6: AllTrump154Winner

 public void AllTrump154Winner()
 {
     var contract = new Contract(PlayerPosition.East, ContractType.AllTrumps);
     var roundedPoints = contract.RoundPoints(154, true);
     Assert.AreEqual(15, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例7: AllTrump155

 public void AllTrump155()
 {
     var contract = new Contract(PlayerPosition.North, ContractType.AllTrumps);
     var roundedPoints = contract.RoundPoints(155, true);
     Assert.AreEqual(16, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例8: Trump87

 public void Trump87()
 {
     var contract = new Contract(PlayerPosition.North, ContractType.Hearts);
     var roundedPoints = contract.RoundPoints(87, true);
     Assert.AreEqual(9, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例9: AllTrump153

 public void AllTrump153()
 {
     var contract = new Contract(PlayerPosition.South, ContractType.AllTrumps);
     var roundedPoints = contract.RoundPoints(153, false);
     Assert.AreEqual(15, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例10: Trump86Loser

 public void Trump86Loser()
 {
     var contract = new Contract(PlayerPosition.East, ContractType.Clubs);
     var roundedPoints = contract.RoundPoints(86, false);
     Assert.AreEqual(9, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例11: Trump86Winner

 public void Trump86Winner()
 {
     var contract = new Contract(PlayerPosition.West, ContractType.Hearts);
     var roundedPoints = contract.RoundPoints(86, true);
     Assert.AreEqual(8, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例12: Trump85

 public void Trump85()
 {
     var contract = new Contract(PlayerPosition.South, ContractType.Clubs);
     var roundedPoints = contract.RoundPoints(85, false);
     Assert.AreEqual(8, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例13: Trump76Winner

 public void Trump76Winner()
 {
     var contract = new Contract(PlayerPosition.South, ContractType.Diamonds);
     var roundedPoints = contract.RoundPoints(76, true);
     Assert.AreEqual(7, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例14: Trump76Loser

 public void Trump76Loser()
 {
     var contract = new Contract(PlayerPosition.North, ContractType.Spades);
     var roundedPoints = contract.RoundPoints(76, false);
     Assert.AreEqual(8, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs

示例15: Trump162

 public void Trump162()
 {
     var contract = new Contract(PlayerPosition.West, ContractType.Diamonds);
     var roundedPoints = contract.RoundPoints(162, false);
     Assert.AreEqual(16, roundedPoints);
 }
开发者ID:razsilev,项目名称:TelerikAcademy_Homework,代码行数:6,代码来源:Contract_RoundPoints.cs


注:本文中的Contract.RoundPoints方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。