private ValueNode CreateValueNode(string bit) { ValueNode nd = null; double result = 0; if (Double.TryParse(bit, out result) == true) { nd = new ValueNode(result); } return nd; }
public void ValueNode_Evaluate_ReturnsInitialisationParameterValue() { double d = 15d; INode node = new ValueNode(d); Assert.AreEqual(d, node.Evaluate()); }
public void ValueNode_CreateNew_Exists() { INode node = new ValueNode(0); Assert.IsInstanceOf(typeof(ValueNode), node); }