public void FAILURE2() { myTestsFuncs.counter = 9; myTestsFuncs.target = 10; ActionNode IncAction = new ActionNode(myTestsFuncs.CounterInc); Limiter test = new Limiter(IncAction); test.Run(); test.Run(); test.Run(); Assert.AreEqual(NodeStates.FAILURE, test.NodeState); Assert.AreEqual(10, myTestsFuncs.counter); }