Пример #1
0
        public void SmallerThanTest()
        {
            FsmParameter bool1 = FsmParameter.NewBoolean("bool1");

            Assert.Throws <NotSupportedException>(() => bool1.SmallerThan(1));
            Assert.Throws <NotSupportedException>(() => bool1.SmallerThan(1f));
        }
Пример #2
0
        public void SmallerThanTest()
        {
            FsmParameter int1 = FsmParameter.NewInteger("int1", 1);

            Assert.IsFalse(int1.SmallerThan(0));
            Assert.IsFalse(int1.SmallerThan(1));
            Assert.IsTrue(int1.SmallerThan(2));
        }
Пример #3
0
        public void SmallerThanTest()
        {
            FsmParameter float1 = FsmParameter.NewFloat("float1", 1f);

            Assert.IsFalse(float1.SmallerThan(0f));
            Assert.IsFalse(float1.SmallerThan(1f));
            Assert.IsTrue(float1.SmallerThan(2f));
        }