Example #1
0
        public void SetupEachTest()
        {
            // clear the scene
            EditorSceneManager.NewScene(NewSceneSetup.EmptyScene);

            // instantiate a Mock SocketConnectionHandler for the GameStateManager to reference
            mockSocketIO = new GameObject("test_socket", typeof(MockSocketConnectionHandler)).GetComponent <MockSocketConnectionHandler>();

            // intantiate a GameStateManager to test
            gameStateManager = new GameObject("test_gamestatemanager", typeof(GameStateManager)).GetComponent <GameStateManager>();
            gameStateManager.Awake();
        }