public override Int32Output TestInt32State(Int32Input input) { State.Int32Info.Value = State.Int32Info.Value.Sub(input.Int32Value); return(new Int32Output() { Int32Value = State.Int32Info.Value }); }
public override Int32Output TestForInfiniteLoop(Int32Input input) { int i = 0; var count = input.Int32Value; for (i = 0; i < count; i++) { } return(new Int32Output { Int32Value = i }); }
public override Int32Output TestWhileInfiniteLoop(Int32Input input) { int i = 0; var count = input.Int32Value; while (i < count) { i++; } return(new Int32Output { Int32Value = i }); }
public override Int32Output TestWhileInfiniteLoopWithState(Int32Input input) { int i = 0; var count = input.Int32Value; while (i++ < count) { if (i % 7 == 0) { State.LoopInt32Value.Value = i; } } return(new Int32Output { Int32Value = State.LoopInt32Value.Value }); }
public override Empty TestInt32State(Int32Input input) { State.Int32Info.Value = State.Int32Info.Value.Add(input.Int32Value); return(new Empty()); }
public override Empty TestInfiniteRecursiveCallInSeparateClass(Int32Input input) { SeparateClass.UseInfiniteRecursiveCallInSeparateClass(input.Int32Value); return(new Empty()); }
public override Empty TestInfiniteRecursiveCall(Int32Input input) { RecursiveCall(input.Int32Value); return(new Empty()); }
public override Int32Output TestForInfiniteLoopInSeparateClass(Int32Input input) { SeparateClass.UseInfiniteLoopInSeparateClass(input.Int32Value); return(new Int32Output()); }
public override Empty TestEnumState(Int32Input input) { State.EnumState.Value = (StateEnum)input.Int32Value; return(new Empty()); }
public override Empty TestInt32SingletonState(Int32Input input) { State.Int32SingletonState.Value = input.Int32Value; return(new Empty()); }