本文整理汇总了C#中Step.CountCall方法的典型用法代码示例。如果您正苦于以下问题:C# Step.CountCall方法的具体用法?C# Step.CountCall怎么用?C# Step.CountCall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Step
的用法示例。
在下文中一共展示了Step.CountCall方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Reset_should_clear_call_count_and_Complete_status
public void Reset_should_clear_call_count_and_Complete_status()
{
var step = new Step(Times.Once());
step.CountCall();
step.EnsureComplete("");
step.Reset();
Assert.That(step.Complete, Is.False);
step.CountCall();
}
示例2: EnsureComplete_should_not_throw_if_minimum_and_maximum_count_met
public void EnsureComplete_should_not_throw_if_minimum_and_maximum_count_met()
{
var step = new Step(Times.Once());
step.CountCall();
step.EnsureComplete("");
Assert.That(step.Complete, Is.True);
}
示例3: Reset_should_make_Started_property_true
public void Reset_should_make_Started_property_true()
{
var step = new Step(Times.AtMostOnce());
step.CountCall();
Assert.That(step.Started, Is.True);
step.Reset();
Assert.That(step.Started, Is.False);
}
示例4: Should_only_be_started_after_first_call
public void Should_only_be_started_after_first_call()
{
var step = new Step(Times.AtMostOnce());
Assert.That(step.Started, Is.False);
step.CountCall();
Assert.That(step.Started, Is.True);
}
示例5: Should_throw_immediately_once_call_count_exceeds_maximum
public void Should_throw_immediately_once_call_count_exceeds_maximum()
{
var step = new Step(Times.AtMostOnce());
step.CountCall();
Assert.Throws<SequenceException>(step.CountCall);
}