示例#1
0
        public void TestByteVariableNullValue()
        {
            ByteVariable var    = new ByteVariable();
            bool         actual = var.CheckForStore(null);

            Assert.IsFalse(actual);
        }
示例#2
0
        public void TestFalseStringValue()
        {
            ByteVariable var = new ByteVariable();

            var.CheckForStore("false");
            Assert.IsFalse(var.CheckForStore("false"));
        }
示例#3
0
        public void TestByteValue()
        {
            ByteVariable var       = new ByteVariable();
            byte         actualVal = 1;

            var.CheckForStore(actualVal);
            Assert.AreEqual(1, var.Value);
        }
示例#4
0
        public void TestGetByteType()
        {
            ByteVariable var = new ByteVariable();

            Assert.AreEqual("byte", var.StoreType);
        }