示例#1
0
 public void TestWordBounderies()
 {
     var mapper = new StringMapper(new Dictionary<String, String>()
     {
         {"Kappa", ":steammocking:" },
         {"FailFish", ":steamfacepalm:" }
     });
     Assert.AreEqual("KappaRoss :steammocking: Kappa!", mapper.Map("KappaRoss Kappa Kappa!"));
 }
示例#2
0
 public void TestEmptyDictionary()
 {
     var mapper = new StringMapper(new Dictionary<String, String>());
     Assert.AreEqual(String.Empty, mapper.Map(String.Empty));
     Assert.AreEqual("abcdefg", mapper.Map("abcdefg"));
 }