Esempio n. 1
0
        public void Host_ShouldStartHostingOnNetworkManager()
        {
            // When
            _hostNewGame.Host("");

            // Then
            _spotTheDefuserNetworkManager.Received().Host();
        }
        public void Connect_ShouldConnectToHost()
        {
            // Given
            const string hostAddress = "127.0.0.1";

            // When
            _connectToNewGame.Connect(hostAddress);

            // Then
            _spotTheDefuserNetworkManager.Received().Join(hostAddress);
        }