Exemplo n.º 1
0
 public Reckoning(bool arg, ReCon stack)
 {
     context = arg ? stack.Enter(forward: true) : null;
 #if !AL_OPTIMIZE
     callInfo = CallInfo.none;
 #endif
 }
Exemplo n.º 2
0
    [Test] public void CxIndexer_stackEmpty([Range(-1, 1)] int val)
    {
        var    cx = new ReCon.Context(rec, forward: false);
        status s  = status.@unchecked(val);

        Assert.Throws <InvOp>(
            () => s = cx[s]);
    }
Exemplo n.º 3
0
 public status this[status s] {
     get{
         context?.Exit();
         context = null;
 #if AL_OPTIMIZE
         return(s);
 #else
         return(s / callInfo);
 #endif
     }
 }
Exemplo n.º 4
0
        public ResetCriterion Check(object arg, ReCon stack)
        {
            bool equals = (arg == null) ? (hold == null)
                                  : arg.Equals(hold);

            if (!equals)
            {
                context = stack.Enter(forward: true);
                hold    = arg;
            }
            return(this);
        }
Exemplo n.º 5
0
 [Test] public void NewCx_noRoE()
 {
     ReCon.Context cx;
     Assert.Throws <NullReferenceException>(
         () => cx = new ReCon.Context(null, forward: false));
 }
Exemplo n.º 6
0
 [Test] public void NewContext()
 {
     var cx = new ReCon.Context(rec, forward: false);
 }
Exemplo n.º 7
0
 public Reckoning(bool arg, ReCon stack, CallInfo i)
 {
     callInfo = i;
     context  = arg ? stack.Enter(forward: true) : null;
 }