Esempio n. 1
0
        public void TestThreshold()
        {
            Threshold <int> threshold = new Threshold <int>(3, 5);

            Assert.AreEqual(true, threshold.Contain(4));
            Assert.AreEqual(false, threshold.Contain(2));
            Assert.AreEqual(false, threshold.Contain(6));

            Assert.AreEqual(true, 6 > threshold);
            Assert.AreEqual(true, 2 < threshold);
        }