namespace Ariadne.Vellum.UnitTests
{
///
/// Runs the passage of another arc twice, closing the gate between the calls so the second one pauses too.
///
public partial class RepeatingOperatorScript : Arc
{
public PlantScript Plant;
public string Result;
protected override void Run(Gates gates)
{
for (int i = 0; i < 2; i++)
{
Plant.Update(gates);
gates.Open.Remove("go");
}
Result = "done " + Plant.Updates;
}
}
}