本文整理汇总了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);
}
示例2: NoTrump0
public void NoTrump0()
{
var contract = new Contract(PlayerPosition.East, ContractType.NoTrumps);
var roundedPoints = contract.RoundPoints(0, true);
Assert.AreEqual(0, roundedPoints);
}
示例3: NoTrump136
public void NoTrump136()
{
var contract = new Contract(PlayerPosition.North, ContractType.NoTrumps);
var roundedPoints = contract.RoundPoints(136, false);
Assert.AreEqual(14, roundedPoints);
}
示例4: AllTrump258
public void AllTrump258()
{
var contract = new Contract(PlayerPosition.West, ContractType.AllTrumps);
var roundedPoints = contract.RoundPoints(258, false);
Assert.AreEqual(26, roundedPoints);
}
示例5: AllTrump3
public void AllTrump3()
{
var contract = new Contract(PlayerPosition.East, ContractType.AllTrumps);
var roundedPoints = contract.RoundPoints(3, false);
Assert.AreEqual(0, roundedPoints);
}
示例6: AllTrump154Winner
public void AllTrump154Winner()
{
var contract = new Contract(PlayerPosition.East, ContractType.AllTrumps);
var roundedPoints = contract.RoundPoints(154, true);
Assert.AreEqual(15, roundedPoints);
}
示例7: AllTrump155
public void AllTrump155()
{
var contract = new Contract(PlayerPosition.North, ContractType.AllTrumps);
var roundedPoints = contract.RoundPoints(155, true);
Assert.AreEqual(16, roundedPoints);
}
示例8: Trump87
public void Trump87()
{
var contract = new Contract(PlayerPosition.North, ContractType.Hearts);
var roundedPoints = contract.RoundPoints(87, true);
Assert.AreEqual(9, roundedPoints);
}
示例9: AllTrump153
public void AllTrump153()
{
var contract = new Contract(PlayerPosition.South, ContractType.AllTrumps);
var roundedPoints = contract.RoundPoints(153, false);
Assert.AreEqual(15, roundedPoints);
}
示例10: Trump86Loser
public void Trump86Loser()
{
var contract = new Contract(PlayerPosition.East, ContractType.Clubs);
var roundedPoints = contract.RoundPoints(86, false);
Assert.AreEqual(9, roundedPoints);
}
示例11: Trump86Winner
public void Trump86Winner()
{
var contract = new Contract(PlayerPosition.West, ContractType.Hearts);
var roundedPoints = contract.RoundPoints(86, true);
Assert.AreEqual(8, roundedPoints);
}
示例12: Trump85
public void Trump85()
{
var contract = new Contract(PlayerPosition.South, ContractType.Clubs);
var roundedPoints = contract.RoundPoints(85, false);
Assert.AreEqual(8, roundedPoints);
}
示例13: Trump76Winner
public void Trump76Winner()
{
var contract = new Contract(PlayerPosition.South, ContractType.Diamonds);
var roundedPoints = contract.RoundPoints(76, true);
Assert.AreEqual(7, roundedPoints);
}
示例14: Trump76Loser
public void Trump76Loser()
{
var contract = new Contract(PlayerPosition.North, ContractType.Spades);
var roundedPoints = contract.RoundPoints(76, false);
Assert.AreEqual(8, roundedPoints);
}
示例15: Trump162
public void Trump162()
{
var contract = new Contract(PlayerPosition.West, ContractType.Diamonds);
var roundedPoints = contract.RoundPoints(162, false);
Assert.AreEqual(16, roundedPoints);
}