예제 #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());
        }
예제 #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));
        }