Example #1
0
        public void GetLinear()
        {
            var random = new Random();
            var min    = random.Next(1, 100);
            var max    = random.Next(101, 1000);
            var t      = Strategies.Get(Strategy.Linear, min, max);

            Assert.IsNotNull(t as LinearTiming);
            Assert.AreEqual(min, t.FrequencyInSeconds.Minimum);
        }
Example #2
0
 public void GetUnknown()
 {
     Assert.That(() => Strategies.Get((Strategy)22, 100, 100), Throws.TypeOf <InvalidOperationException>());
 }