Example #1
0
 /// <summary>
 /// Creates an instance to the platform service for a test source host.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="runSettings">
 /// The run Settings for the session.
 /// </param>
 /// <param name="frameworkHandle">
 /// The handle to the the test platform.
 /// </param>
 /// <returns>
 /// Returns the host for the source provided.
 /// </returns>
 public ITestSourceHost CreateTestSourceHost(
     string source,
     TestPlatform.ObjectModel.Adapter.IRunSettings runSettings,
     TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle)
 {
     return(new TestSourceHost(source, runSettings, frameworkHandle));
 }
        /// <summary>
        /// Creates an instance to the platform service for a test source host.
        /// </summary>
        /// <param name="source">
        /// The source.
        /// </param>
        /// <param name="runSettings">
        /// The run Settings for the session.
        /// </param>
        /// <param name="frameworkHandle">
        /// The handle to the the test platform.
        /// </param>
        /// <returns>
        /// Returns the host for the source provided.
        /// </returns>
        public ITestSourceHost CreateTestSourceHost(
            string source,
            TestPlatform.ObjectModel.Adapter.IRunSettings runSettings,
            TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle)
        {
            var testSourceHost = new TestSourceHost(source, runSettings, frameworkHandle);

            testSourceHost.SetupHost();

            return(testSourceHost);
        }