public void Setup()
 {
     _shimsContext  = ShimsContext.Create();
     _eAction       = new eaction();
     _privateObject = new PrivateObject(_eAction);
     _adoShims      = AdoShims.ShimAdoNetCalls();
 }
Exemple #2
0
    public void switchfocus(eaction act)
    {
        Focusswitch focus = new Focusswitch(state, act);
        estate      next  = estate.wander;

        //Debug.Log (state+" : "+act+" | "+transitions);
        if (!(transitions == null || transitions.TryGetValue(focus, out next)))
        {
            Debug.Log("Invalid transition: " + state + " -> " + act);
            return;
        }
        if (next == state)        //too many prints, combine above done testing
        {
            return;
        }
        //Debug.Log (transform.name+" sw: "+state+" ("+act+") -> "+next);
        state = next;
    }
Exemple #3
0
 public Focusswitch(estate s, eaction a)
 {
     state  = s;
     action = a;
 }