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); }
public void RunnerRunsNull() { var s = new QueueThroughput(); Assert.That(() => s.Runner(null, QueuePriority.High), Throws.TypeOf <ArgumentNullException>()); }