public void IsValidDigitTest() { string name = "Joe"; string s = "15o"; bool expectedResponse = false; MathmlHelper m = new Mathml.MathmlHelper(); bool response = m.IsValidDigit(name, s); Assert.AreEqual(expectedResponse, response); }
public void PerformOperationSumTest() { string name = "Joe"; int n1 = 25; int n2 = 5; string op = "SUM"; int ans = n1 + n2; string expectedResponse = name + " - " + op + " - " + n1 + " + " + n2 + " = " + ans; MathmlHelper m = new Mathml.MathmlHelper(); string response = m.PerformOperation(n1, n2, op, name); Assert.AreEqual(expectedResponse, response); }
static void Main(string[] args) { MathmlHelper m = new MathmlHelper(); m.ReadXmlFile(); }