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));
        }
예제 #2
0
 public static void TestClassSetup(TestContext context)
 {
     testContext = context;
     listenPort  = WiFiDirectTestUtilities.ParsePortParameter(context, "ListenPort", DefaultListenPort);
 }