private bool Check(bool value) { _i = 0; _j = 0; Func <bool> formula = () => { ++_i; return(value); }; var model = EmptyTestModelFactory.CreateRuntimeModel(Output); return(model.Compile(new UnaryFormula(formula(), UnaryOperator.Not))()); }
private bool Check(bool first, bool second, BinaryOperator op) { _i = 0; _j = 0; Func <bool> left = () => { ++_i; return(first); }; Func <bool> right = () => { ++_j; return(second); }; var model = EmptyTestModelFactory.CreateRuntimeModel(Output); return(model.Compile(new BinaryFormula(left(), op, right()))()); }