Ejemplo n.º 1
0
        public void TokenReplacer_GetTokenNames_ContainsTokenNameWithDelimiter()
        {
            var tr = new TokenReplacer();
            var t  = new StringToken("testName", "testValue");

            tr.AddToken(t);
            Assert.Contains("<" + t.GetName() + ">", tr.GetTokenNames());
        }
Ejemplo n.º 2
0
        public void TokenReplacer_GetTokenNames_ContainsTokenName()
        {
            var tr = new TokenReplacer();
            var t  = new StringToken("testName", "testValue");

            tr.AddToken(t);
            Assert.Contains(t.GetName(), tr.GetTokenNames(false));
        }