void RobotService_Right_Placed_Allowed(Facing start, Facing expected, [Frozen]Mock<IRobot> mockRobot, RobotService sut) { mockRobot.SetupProperty(x => x.Placed, true); mockRobot.SetupProperty(x => x.F, start); sut.Right(); mockRobot.VerifySet(r => r.F = expected, Times.Once()); }
void RobotService_Right_NotPlaced_Ignored(Facing start, Facing expected, [Frozen]Mock<IRobot> mockRobot, RobotService sut) { mockRobot.SetupProperty(x => x.Placed, false); mockRobot.SetupProperty(x => x.F, start); sut.Right(); mockRobot.VerifySet(r => r.F = expected, Times.Never()); }