public ServerTestRunConfiguration(Func<byte[]> xapHost, string xapToTest, XapHostType xapHostType, string queryString, bool forceBrowserStart, WindowGeometry windowGeometry)
        {
            if (xapHost == null) throw new ArgumentNullException("xapHost");
            if (xapToTest == null) throw new ArgumentNullException("xapToTest");

            HostXap = xapHost;
            XapToTestPath = xapToTest;
            XapHostType = xapHostType;
            QueryString = queryString;
            ForceBrowserStart = forceBrowserStart;
            WindowGeometry = windowGeometry;
        }
        public ServerTestRunConfiguration(Func<byte[]> xapHost, long dialogSmackDownElapseMilliseconds, string xapToTest, XapHostType xapHostType, string queryString, bool forceBrowserStart, bool showTestingBrowserHost)
        {
            if (xapHost == null) throw new ArgumentNullException("xapHost");
            if (xapToTest == null) throw new ArgumentNullException("xapToTest");

            HostXap = xapHost;
            DialogSmackDownElapseMilliseconds = dialogSmackDownElapseMilliseconds;
            XapToTestPath = xapToTest;
            XapHostType = xapHostType;
            QueryString = queryString;
            ForceBrowserStart = forceBrowserStart;
            ShowTestingBrowserHost = showTestingBrowserHost;
        }
Esempio n. 3
0
        public ServerTestRunConfiguration(Func <byte[]> xapHost, string xapToTest, XapHostType xapHostType, string queryString, bool forceBrowserStart, WindowGeometry windowGeometry)
        {
            if (xapHost == null)
            {
                throw new ArgumentNullException("xapHost");
            }
            if (xapToTest == null)
            {
                throw new ArgumentNullException("xapToTest");
            }

            HostXap           = xapHost;
            XapToTestPath     = xapToTest;
            XapHostType       = xapHostType;
            QueryString       = queryString;
            ForceBrowserStart = forceBrowserStart;
            WindowGeometry    = windowGeometry;
        }
Esempio n. 4
0
        public ServerTestRunConfiguration(Func <byte[]> xapHost, long dialogSmackDownElapseMilliseconds, string xapToTest, XapHostType xapHostType, string queryString, bool forceBrowserStart, bool showTestingBrowserHost)
        {
            if (xapHost == null)
            {
                throw new ArgumentNullException("xapHost");
            }
            if (xapToTest == null)
            {
                throw new ArgumentNullException("xapToTest");
            }

            HostXap = xapHost;
            DialogSmackDownElapseMilliseconds = dialogSmackDownElapseMilliseconds;
            XapToTestPath          = xapToTest;
            XapHostType            = xapHostType;
            QueryString            = queryString;
            ForceBrowserStart      = forceBrowserStart;
            ShowTestingBrowserHost = showTestingBrowserHost;
        }
        private ServerTestRunConfiguration CreateServerConfiguration(
            string xapPath,
            UnitTestProviderType unitTestProviderType,
            MicrosoftTestingFrameworkVersion?microsoftTestingFrameworkVersion,
            Func <IEnumerable <ITestFile> > filesToCopyIntoHostXapFunc,
            string queryString,
            bool forceBrowserStart,
            WindowGeometry windowGeometry,
            string runtimeVersion)
        {
            XapHostType xapHostType = _xapHostFileLoaderFactory.MapToXapHostType(unitTestProviderType, microsoftTestingFrameworkVersion);

            Func <byte[]> hostXapFactory = () =>
            {
                byte[] hostXap = _xapHostFileLoaderFactory.LoadXapHostFor(xapHostType);
                hostXap = RewriteXapWithSpecialFiles(hostXap, filesToCopyIntoHostXapFunc, runtimeVersion);
                return(hostXap);
            };

            return(new ServerTestRunConfiguration(hostXapFactory, xapPath, xapHostType, queryString, forceBrowserStart, windowGeometry));
        }
        private ServerTestRunConfiguration CreateServerConfiguration(
            string xapPath,
            UnitTestProviderType unitTestProviderType,
            MicrosoftTestingFrameworkVersion?microsoftTestingFrameworkVersion,
            IEnumerable <ITestFile> filesToCopyIntoHostXap,
            long dialogSmackDownElapseMilliseconds,
            string queryString,
            bool forceBrowserStart,
            bool showTestingBrowserHost)
        {
            XapHostType xapHostType = _xapHostFileLoaderFactory.MapToXapHostType(unitTestProviderType, microsoftTestingFrameworkVersion);

            Func <byte[]> hostXapFactory = () =>
            {
                byte[] hostXap = _xapHostFileLoaderFactory.LoadXapHostFor(xapHostType);
                hostXap = RewriteXapWithSpecialFiles(hostXap, filesToCopyIntoHostXap);
                return(hostXap);
            };

            return(new ServerTestRunConfiguration(hostXapFactory, dialogSmackDownElapseMilliseconds, xapPath, xapHostType, queryString, forceBrowserStart, showTestingBrowserHost));
        }
 public virtual byte[] LoadXapHostFor(XapHostType version)
 {
     _logger.Debug("Loading XapHost file [" + version + "]");
     return(XapHostFileLoaders[version].LoadXapHost());
 }
 public virtual byte[] LoadXapHostFor(XapHostType version)
 {
     _logger.Debug("Loading XapHost file [" + version + "]");
     return XapHostFileLoaders[version].LoadXapHost();
 }