public void TestConstNode() { // Arrange var node = new ConstNode(5); // Act var result = node.Eval(new Dictionary <char, double>()); // Assert Assert.Equal(5, result); }
public void TestConstNode2() { // Arrange var node = new ConstNode(5); var dictionary = new Dictionary <char, double>() { { 'x', 5 } }; // Act var result = node.Eval(dictionary); // Assert Assert.Equal(5, result); }