public void TestIsWildcard()
        {
            FrequencyParameter freq = new FrequencyParameter(1);

            Assert.IsTrue(freq.IsWildcard(1, 10));

            freq = new FrequencyParameter(2);
            Assert.IsFalse(freq.IsWildcard(1, 20));
        }
        public void TestContainsPoint()
        {
            FrequencyParameter freqThree = new FrequencyParameter(3);

            Assert.IsTrue(freqThree.ContainsPoint(0));
            Assert.IsTrue(freqThree.ContainsPoint(3));
            Assert.IsTrue(freqThree.ContainsPoint(6));
            Assert.IsFalse(freqThree.ContainsPoint(1));
            Assert.IsFalse(freqThree.ContainsPoint(2));
            Assert.IsFalse(freqThree.ContainsPoint(4));

            FrequencyParameter freqOne = new FrequencyParameter(1);

            Assert.IsTrue(freqOne.ContainsPoint(1));
            Assert.IsTrue(freqOne.ContainsPoint(2));
        }
        public void TestGetValues()
        {
            FrequencyParameter freq   = new FrequencyParameter(3);
            ICollection <int>  result = freq.GetValuesInRange(1, 8);

            EPAssertionUtil.AssertEqualsAnyOrder(new int[] { 3, 6 }, result);

            freq   = new FrequencyParameter(4);
            result = freq.GetValuesInRange(6, 16);
            EPAssertionUtil.AssertEqualsAnyOrder(new int[] { 8, 12, 16 }, result);

            freq   = new FrequencyParameter(4);
            result = freq.GetValuesInRange(0, 14);
            EPAssertionUtil.AssertEqualsAnyOrder(new int[] { 0, 4, 8, 12 }, result);

            freq   = new FrequencyParameter(1);
            result = freq.GetValuesInRange(2, 5);
            EPAssertionUtil.AssertEqualsAnyOrder(new int[] { 2, 3, 4, 5 }, result);
        }
        public void TestFormat()
        {
            FrequencyParameter freqThree = new FrequencyParameter(3);

            Assert.AreEqual("*/3", freqThree.Formatted());
        }