Esempio n. 1
0
        public void UpdateValue_Correct_Test()
        {
            symbolTable = new SymbolTable();

            AddValue_Correct_Test();

            symbolTable.SetUpdateValue(id, new Bool(true));

            Bool value = (Bool)symbolTable.GetValue(id);

            Assert.IsTrue(value.GetValue() == true);
        }
Esempio n. 2
0
        public void TransformRow(DataRow source)
        {
            if (source is null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            int v = 0;

            for (int i = 0; i < this.ColumnNames.Count; i++)
            {
                v |= (Bool.GetValue(source[this.ColumnNames[i]].ToString()) >> i);
            }

            source[this.TargetColumn] = v;
        }
Esempio n. 3
0
 public override Value Visit(Bool node)
 {
     return(new Bool(node.GetValue()));
 }