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

TestReplace_StringWithOneToken_FoundInDictionary() private method

private TestReplace_StringWithOneToken_FoundInDictionary ( ) : void
return void
        public void TestReplace_StringWithOneToken_FoundInDictionary()
        {
            var dictionary = new Dictionary<string, string>();
            dictionary.Add("tokenName", "tokenised");

            var tokeniser = new Tokeniser();

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