Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public TestMatrix WithAllApplicationTypes()
 {
     ApplicationTypes.Add(ApplicationType.Portable);
     ApplicationTypes.Add(ApplicationType.Standalone);
     return(this);
 }