public void AfterTest() { _secondElement = null; _firstElement = null; _localUi = null; }
public void BeforeTest() { var gameObject = new GameObject(); gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); _localUi = gameObject.AddComponent <TestLocalUIComponent>(); _firstElement = gameObject.AddComponent <TestLocalUIElementComponent>(); _secondElement = new GameObject().AddComponent <TestLocalUIElementComponent>(); _secondElement.gameObject.transform.parent = _localUi.gameObject.transform; }
public void AfterTest() { _dispatcher = null; _local = null; }
public void BeforeTest() { _local = new GameObject().AddComponent <TestLocalUIElementComponent>(); _dispatcher = new UnityMessageEventDispatcher(); }