Esempio n. 1
0
        /// <summary>
        /// Runs each test, creating the specified interface from the IAudioClient.GetService method.
        /// Tests are run in both shared and exclusive mode, with the audio client in the running (started) state.
        /// </summary>
        /// <param name="onTestReady">The test method to use.</param>
        protected virtual void ExecuteRunningServiceTest(TestReadyDelegate <T> onTestReady)
        {
            var serviceTestManager = ServiceTestManager <T> .Create(ComIID, false);

            serviceTestManager.AutoStartClient = true;

            Manager             = serviceTestManager;
            Manager.OnTestReady = onTestReady;
            Manager.Run();

            serviceTestManager = ServiceTestManager <T> .Create(ComIID, true);

            serviceTestManager.AutoStartClient = true;

            Manager             = serviceTestManager;
            Manager.OnTestReady = onTestReady;
            Manager.Run();
        }
Esempio n. 2
0
 /// <summary>
 /// Runs tests via a custom test manager.
 /// </summary>
 /// <param name="testManager">The test manager.</param>
 /// <param name="onTestReady">The test method to use.</param>
 protected void ExecuteCustomTest(TestManager <T> testManager, TestReadyDelegate <T> onTestReady)
 {
     Manager             = testManager;
     Manager.OnTestReady = onTestReady;
     Manager.Run();
 }