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); }
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; }
public override Value Visit(Bool node) { return(new Bool(node.GetValue())); }