示例#1
0
        public ExperimentInstance(ExperimentSettings <T> settings)
        {
            Name = settings.Name;

            Behaviors = new List <NamedBehavior>
            {
                new NamedBehavior(ControlExperimentName, settings.Control),
            };
            Behaviors.AddRange(
                settings.Candidates.Select(c => new NamedBehavior(c.Key, c.Value)));

            BeforeRun         = settings.BeforeRun;
            Comparator        = settings.Comparator;
            Contexts          = settings.Contexts;
            RunIf             = settings.RunIf;
            Ignores           = settings.Ignores;
            Thrown            = settings.Thrown;
            ThrowOnMismatches = settings.ThrowOnMismatches;
        }
示例#2
0
        public ExperimentInstance(ExperimentSettings <T, TClean> settings)
        {
            Name = settings.Name;

            Behaviors = new List <NamedBehavior>
            {
                new NamedBehavior(ControlExperimentName, settings.Control),
            };
            Behaviors.AddRange(
                settings.Candidates.Select(c => new NamedBehavior(c.Key, c.Value)));

            BeforeRun         = settings.BeforeRun;
            Cleaner           = settings.Cleaner;
            Comparator        = settings.Comparator;
            ConcurrentTasks   = settings.ConcurrentTasks;
            Contexts          = settings.Contexts;
            Enabled           = settings.Enabled;
            RunIf             = settings.RunIf;
            Ignores           = settings.Ignores;
            Thrown            = settings.Thrown;
            ThrowOnMismatches = settings.ThrowOnMismatches;
            ResultPublisher   = settings.ResultPublisher;
        }