예제 #1
0
 private void SetupContextFor2Agents3Processes4ThreadsAndDistributionMode(DatapoolThreadDistributionMode distributionMode)
 {
     grinderContextMock.Setup(c => c.GetProperty(Constants.AgentCountKey, "1")).Returns("2");
     grinderContextMock.Setup(c => c.GetProperty(Constants.ProcessCountKey, "1")).Returns("3");
     grinderContextMock.Setup(c => c.GetProperty(Constants.ThreadCountKey, "1")).Returns("4");
     metadataMock.Setup(md => md.DistributionMode).Returns(distributionMode);
 }
예제 #2
0
        public DefaultDatapoolMetadata(IList <T> values, bool isRandom, int seed, DatapoolThreadDistributionMode distributionMode, bool isCircular, string name = null)
        {
            if (values == null)
            {
                throw new ArgumentNullException("values");
            }

            Name             = string.IsNullOrWhiteSpace(name) ? typeof(T).Name : name;
            Values           = values;
            IsRandom         = isRandom;
            Seed             = seed;
            DistributionMode = distributionMode;
            IsCircular       = isCircular;
        }
예제 #3
0
 private void SetupContextFor2Agents3Processes4ThreadsAndDistributionMode(DatapoolThreadDistributionMode distributionMode)
 {
     grinderContextMock.Setup(c => c.GetProperty(Constants.AgentCountKey, "1")).Returns("2");
     grinderContextMock.Setup(c => c.GetProperty(Constants.ProcessCountKey, "1")).Returns("3");
     grinderContextMock.Setup(c => c.GetProperty(Constants.ThreadCountKey, "1")).Returns("4");
     metadataMock.Setup(md => md.DistributionMode).Returns(distributionMode);
 }