public void EvaluateReplaceCharacterTestcountryCode() { Object[] os = { "+4412345678", "+44", "0", "," }; Object expResult = "012345678"; CustomFunction Instance = new ReplaceCharacters(); Object result = Instance.Evaluate(null, os); Assert.AreEqual(expResult, result); }
public void EvaluateReplaceCharacterTest() { Object[] os = { "(1234)-[567+8]", "[,],+,-,(,)", "", "," }; Object expResult = "12345678"; CustomFunction Instance = new ReplaceCharacters(); Object result = Instance.Evaluate(null, os); Assert.AreEqual(expResult, result); }