public void Before()
 {
     TestContainer      = new GameObject();
     buttonHandler      = TestContainer.AddComponent <ButtonHandler>();
     buttonHandler.name = "buttonHandler";
     // Testing MonoBehaviours requires taking manual control. Call a
     // protected method for setup.
     buttonHandler.Call("OnEnable");
 }
 public void After()
 {
     // Testing MonoBehaviours requires taking manual control. Call a
     // protected method for cleanup.
     buttonHandler.Call("OnDisable");
     if (TestContainer != null)
     {
         GameObject.DestroyImmediate(TestContainer);
     }
     TestContainer = null;
     buttonHandler = null;
 }