public void SmallerThanTest() { FsmParameter bool1 = FsmParameter.NewBoolean("bool1"); Assert.Throws <NotSupportedException>(() => bool1.SmallerThan(1)); Assert.Throws <NotSupportedException>(() => bool1.SmallerThan(1f)); }
public void SmallerThanTest() { FsmParameter int1 = FsmParameter.NewInteger("int1", 1); Assert.IsFalse(int1.SmallerThan(0)); Assert.IsFalse(int1.SmallerThan(1)); Assert.IsTrue(int1.SmallerThan(2)); }
public void SmallerThanTest() { FsmParameter float1 = FsmParameter.NewFloat("float1", 1f); Assert.IsFalse(float1.SmallerThan(0f)); Assert.IsFalse(float1.SmallerThan(1f)); Assert.IsTrue(float1.SmallerThan(2f)); }