Beispiel #1
0
 public void TestNonAtomic()
 {
     XmlNode testNode = StaticHelpers.GetNode("<person> I WAS HE WAS SHE WAS I AM I ME MY MYSELF </person>");
     _tagHandler = new Person(_query, _request, testNode);
     Assert.AreEqual(" he or she was I was I was he or she is he or she him or her his or her him or herself ",
                     _tagHandler.ProcessChange());
 }
Beispiel #2
0
 public void TestEmptyInput()
 {
     XmlNode testNode = StaticHelpers.GetNode("<person/>");
     _tagHandler = new Person(_query, _request, testNode);
     _query.InputStar.Clear();
     Assert.AreEqual("", _tagHandler.ProcessChange());
 }
Beispiel #3
0
 public void TestNoMatches()
 {
     XmlNode testNode = StaticHelpers.GetNode("<person>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person>");
     _tagHandler = new Person(_query, _request, testNode);
     Assert.AreEqual("THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS", _tagHandler.ProcessChange());
 }