本文整理汇总了C#中Frame.AddUnlessComplete方法的典型用法代码示例。如果您正苦于以下问题:C# Frame.AddUnlessComplete方法的具体用法?C# Frame.AddUnlessComplete怎么用?C# Frame.AddUnlessComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Frame
的用法示例。
在下文中一共展示了Frame.AddUnlessComplete方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Frame_10_1_9_Should_Have_Sum_20
public void Frame_10_1_9_Should_Have_Sum_20()
{
var frame = new Frame(10);
frame.AddUnlessComplete(1);
frame.AddUnlessComplete(9);
Assert.That(frame.Sum, Is.EqualTo(20));
}
示例2: Frame_10_1_9_Should_Be_Complete_Strike
public void Frame_10_1_9_Should_Be_Complete_Strike()
{
var frame = new Frame(10);
frame.AddUnlessComplete(1);
frame.AddUnlessComplete(9);
Assert.That(frame.CompleteStrike, Is.True);
}
示例3: Frame_1_1_Should_Be_Full
public void Frame_1_1_Should_Be_Full()
{
var frame = new Frame(1);
frame.AddUnlessComplete(1);
Assert.That(frame.Complete, Is.True);
}
示例4: Frame_10_10_Should_Not_Be_Complete
public void Frame_10_10_Should_Not_Be_Complete()
{
var frame = new Frame(10);
frame.AddUnlessComplete(10);
Assert.That(frame.Complete, Is.False);
}
示例5: Frame_1_9_4_Should_Have_Sum_14
public void Frame_1_9_4_Should_Have_Sum_14()
{
var frame = new Frame(1);
frame.AddUnlessComplete(9);
frame.AddUnlessComplete(4);
Assert.That(frame.Sum, Is.EqualTo(14));
}
示例6: Frame_1_1_Should_Not_Be_Strike
public void Frame_1_1_Should_Not_Be_Strike()
{
var frame = new Frame(1);
frame.AddUnlessComplete(1);
Assert.That(frame.Strike, Is.False);
}
示例7: Frame_1_1_Should_Have_Score_2
public void Frame_1_1_Should_Have_Score_2()
{
var frame = new Frame(1);
frame.AddUnlessComplete(1);
Assert.That(frame.Sum, Is.EqualTo(2));
}