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); }
public void GetUnknown() { Assert.That(() => Strategies.Get((Strategy)22, 100, 100), Throws.TypeOf <InvalidOperationException>()); }