예제 #1
0
        public void TestIntegerValue()
        {
            IntegerVariable var = new IntegerVariable();

            var.CheckForStore(1);
            Assert.AreEqual(1, var.Value);
        }
예제 #2
0
        public void TestIntegerVariableNullValue()
        {
            IntegerVariable var    = new IntegerVariable();
            bool            actual = var.CheckForStore(null);

            Assert.IsFalse(actual);
        }
예제 #3
0
        public void TestStringIntegerValue()
        {
            IntegerVariable var = new IntegerVariable();

            Assert.IsTrue(var.CheckForStore("123"));
        }
예제 #4
0
        public void TestNotIntegerValue()
        {
            IntegerVariable var = new IntegerVariable();

            Assert.IsFalse(var.CheckForStore("not int"));
        }
예제 #5
0
        public void TestOverflowIntegerValue()
        {
            IntegerVariable var = new IntegerVariable();

            Assert.IsFalse(var.CheckForStore(9999999999999999));
        }