Exemplo n.º 1
0
        public void RunnerLow()
        {
            var runs = Substitute.For <IDynamicRuns>();

            runs.MinimumPeriodInSeconds.Returns(10);

            var s        = new QueueThroughput();
            var scalable = s.Runner(runs, QueuePriority.Low);

            Assert.IsNotNull(runs);
            Assert.IsNotNull(scalable as AdaptiveRunner);
        }
Exemplo n.º 2
0
        public void RunnerRunsNull()
        {
            var s = new QueueThroughput();

            Assert.That(() => s.Runner(null, QueuePriority.High), Throws.TypeOf <ArgumentNullException>());
        }