public void RegisterTests() { var sd = new StateDevice(); _b.Register(sd); Assert.IsTrue(_b.Targets.Contains(sd)); }
protected void RegisterBehavior(BehaviorBase behavior) { if (behavior != null) { if (_behaviors == null) { _behaviors = new List <BehaviorBase>(); } _behaviors.Add(behavior); behavior.Register(this); } }