/// <inheritdoc />
        protected override IHost CreateHostImpl(HostSetup hostSetup, ILogger logger)
        {
            if (! Service.IsInstalled)
                throw new IntegrationNotInstalledException("TypeMock does not appear to be installed.");

            TypeMockHost host = new TypeMockHost(hostSetup, logger, RuntimePath);
            host.Connect();
            return host;
        }
Beispiel #2
0
        /// <inheritdoc />
        protected override IHost CreateHostImpl(HostSetup hostSetup, ILogger logger)
        {
            if (!Service.IsInstalled)
            {
                throw new IntegrationNotInstalledException("TypeMock does not appear to be installed.");
            }

            TypeMockHost host = new TypeMockHost(hostSetup, logger, RuntimePath);

            host.Connect();
            return(host);
        }