本文整理汇总了C#中Rover.IsDeployed方法的典型用法代码示例。如果您正苦于以下问题:C# Rover.IsDeployed方法的具体用法?C# Rover.IsDeployed怎么用?C# Rover.IsDeployed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rover
的用法示例。
在下文中一共展示了Rover.IsDeployed方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initializes_with_IsDeployed_equal_to_false
public void Initializes_with_IsDeployed_equal_to_false()
{
var rover = new Rover();
Assert.That(!rover.IsDeployed());
}
示例2: After_Rover_has_been_deployed_returns_true
public void After_Rover_has_been_deployed_returns_true()
{
var point = new Point(0, 0);
mockLandingSurface.Setup(x => x.IsValid(point)).Returns(true);
var rover = new Rover();
rover.Deploy(mockLandingSurface.Object, point, CardinalDirection.North);
var isDeployed = rover.IsDeployed();
Assert.That(isDeployed);
}
示例3: Before_Rover_has_been_deployed_returns_false
public void Before_Rover_has_been_deployed_returns_false()
{
var point = new Point(0, 0);
mockLandingSurface.Setup(x => x.IsValid(point)).Returns(true);
var rover = new Rover();
var isDeployed = rover.IsDeployed();
Assert.That(!isDeployed);
}