public void AfterTest() { GameServiceProvider.ClearGameServiceProvider(); _noise = null; _emitter = null; }
public void BeforeTest() { _emitter = new GameObject().AddComponent <NoiseEmitterComponent>(); _emitter.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); _emitter.gameObject.transform.position = new Vector3(12.0f, 20.0f, 30.0f); _noise = new MockNoiseService(); new GameObject().AddComponent <TestGameServiceProvider>().TestAwake(); GameServiceProvider.CurrentInstance.AddService <INoiseServiceInterface>(_noise); }