public static WiFiDirectTestController GetRemoteTestControllerFromTestContext(TestContext context) { ushort remoteServerPort = WiFiDirectTestUtilities.ParsePortParameter(context, "RemoteServerPort", WiFiDirectRemoteServer.DefaultListenPort); string remoteServer = context.Properties["RemoteServer"] as string; if (remoteServer == null) { Verify.Fail("RemoteServer parameter must be provided."); } return(WiFiDirectTestController.CreateFromRemoteCommandClient(remoteServer, remoteServerPort)); }