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

TestReplace_StringWithTwoTokens_FoundInDictionary() private method

private TestReplace_StringWithTwoTokens_FoundInDictionary ( ) : void
return void
        public void TestReplace_StringWithTwoTokens_FoundInDictionary()
        {
            var dictionary = new Dictionary<string, string>();
            dictionary.Add("tokenName1", "tokenised1");
            dictionary.Add("tokenName2", "tokenised2");

            var tokeniser = new Tokeniser();

            TestReplace(tokeniser, dictionary, "some [%tokenName1%] text [%tokenName2%].", "some tokenised1 text tokenised2.");
            TestReplace(tokeniser, dictionary, "[%tokenName1%]", "tokenised1");
        }