@@ -154,21 +154,21 @@ public void UnityTransport_StartServerWithoutAddresses()
154154 [ Test ]
155155 public void UnityTransport_EmptySecurityStringsShouldThrow ( [ Values ( "" , null ) ] string cert , [ Values ( "" , null ) ] string secret )
156156 {
157- var supportingGO = new GameObject ( ) ;
157+ var supportingGo = new GameObject ( ) ;
158158 try
159159 {
160- var networkManager = supportingGO . AddComponent < NetworkManager > ( ) ; // NM is required for UTP to work with certificates.
160+ var networkManager = supportingGo . AddComponent < NetworkManager > ( ) ; // NM is required for UTP to work with certificates.
161161 networkManager . NetworkConfig = new NetworkConfig ( ) ;
162- UnityTransport transport = supportingGO . AddComponent < UnityTransport > ( ) ;
162+ UnityTransport transport = supportingGo . AddComponent < UnityTransport > ( ) ;
163163 networkManager . NetworkConfig . NetworkTransport = transport ;
164- transport . Initialize ( ) ;
164+ transport . Initialize ( networkManager ) ;
165165 transport . SetServerSecrets ( serverCertificate : cert , serverPrivateKey : secret ) ;
166166
167167 // Use encryption, but don't set certificate and check for exception
168168 transport . UseEncryption = true ;
169169 Assert . Throws < System . Exception > ( ( ) =>
170170 {
171- networkManager . StartServer ( ) ;
171+ transport . StartServer ( ) ;
172172 } ) ;
173173 // Make sure StartServer failed
174174 Assert . False ( transport . GetNetworkDriver ( ) . IsCreated ) ;
@@ -177,9 +177,9 @@ public void UnityTransport_EmptySecurityStringsShouldThrow([Values("", null)] st
177177 }
178178 finally
179179 {
180- if ( supportingGO != null )
180+ if ( supportingGo != null )
181181 {
182- Object . DestroyImmediate ( supportingGO ) ;
182+ Object . DestroyImmediate ( supportingGo ) ;
183183 }
184184 }
185185 }
0 commit comments