Пример #1
0
        private IEnumerable <TestVariant> Build()
        {
            if (!Servers.Any())
            {
                throw new ArgumentException("No servers were specified.");
            }

            // TFMs.
            if (!Tfms.Any())
            {
                throw new ArgumentException("No TFMs were specified.");
            }

            ResolveDefaultArchitecture();

            if (!ApplicationTypes.Any())
            {
                ApplicationTypes.Add(ApplicationType.Portable);
            }

            if (!HostingModels.Any())
            {
                HostingModels.Add(HostingModel.OutOfProcess);
            }

            var variants = new List <TestVariant>();

            VaryByServer(variants);

            CheckForSkips(variants);

            return(variants);
        }
Пример #2
0
        private IEnumerable <TestVariant> Build()
        {
            // TFMs.
            if (!Tfms.Any())
            {
                throw new ArgumentException("No TFMs were specified.");
            }

            ResolveDefaultArchitecture();

            if (!ApplicationTypes.Any())
            {
                ApplicationTypes.Add(ApplicationType.Portable);
            }

            var variants = new List <TestVariant>();

            VaryByTfm(variants);

            CheckForSkips(variants);

            return(variants);
        }