int DropSkipJumpNotZero(List <object> parameters) { var repeatValue = _variablesManager.GetVariable("repeat"); _variablesManager.SetVariable("repeat", repeatValue - 1); Console.WriteLine($"Repeat count = {repeatValue}"); return(repeatValue > 0 ? 1 : 0); }
public void AValueCanBeSetAndRetrievedFromTheVariablesManager() { _variablesManager.SetVariable("var1", 42); _variablesManager.GetVariable("var1").Should().Be(42); }