public void TestTokenDictionaryResolution()
        {
            var tokens = new TokenDictionary();

            tokens.Set("name1", Token.FromString(TokenReplacement.TokenPlaceHolder("name2")));
            tokens.Set("name3", Token.FromString(TokenReplacement.TokenPlaceHolder("name2")));
            tokens.Set("name2", Token.FromString("testName"));

            Assert.AreEqual(expected: "testName", actual: tokens.GetString("name1"));
            Assert.AreEqual(expected: "testName", actual: tokens.GetString("name3"));
        }
Ejemplo n.º 2
0
 public static string GetJobName(TokenDictionary tokens)
 {
     return(tokens.GetString(TokenName_JobName));
 }