Amido.PreProcessor.Cmd.Tests.TokeniserTests.TestReplace_StringWithEmbeddedToken_FoundInDictionary C# (CSharp) Method

TestReplace_StringWithEmbeddedToken_FoundInDictionary() private method

        public void TestReplace_StringWithEmbeddedToken_FoundInDictionary()
        {
            var dictionary = new Dictionary<string, string>();
            dictionary.Add("tokenName", "tokenised");
            dictionary.Add("emdeddedToken", "en");

            var tokeniser = new Tokeniser();

            TestReplace(tokeniser, dictionary, "some [%tok[%emdeddedToken%]Name%] text.", "some tokenised text.");
            TestReplace(tokeniser, dictionary, "some [%tok[%emdeddedToken%]Name%] text [%tokenName%].", "some tokenised text tokenised.");
        }