public void TestReplace_StringWithTwoIdenticalTokens_FoundInDictionary()
{
var dictionary = new Dictionary<string, string>();
dictionary.Add("tokenName", "tokenised");
var tokeniser = new Tokeniser();
TestReplace(tokeniser, dictionary, "some [%tokenName%] text [%tokenName%].", "some tokenised text tokenised.");
TestReplace(tokeniser, dictionary, "some [%tokenName%] [%tokenName%].", "some tokenised tokenised.");
TestReplace(tokeniser, dictionary, "some [%tokenName%][%tokenName%].", "some tokenisedtokenised.");
TestReplace(tokeniser, dictionary, "[%tokenName%][%tokenName%]", "tokenisedtokenised");
}