Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }