コード例 #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));
        }