public void TRuleSomeWordsCondition_BuildXmlElement() { var testClass = new TRuleSomeWordsCondition(GetXmlNode(_xml)); Assert.AreEqual("TESTING", testClass.MatchValue); Assert.AreEqual(TRuleSomeWordsFunctionType.Equals, testClass.MatchFunction); Assert.AreEqual(TRuleMultipleItemsMatchType.AtLeastOneMatch, testClass.MultipleItemsMatch); }
public void TRuleSomeWordsCondition() { var testClass = new TRuleSomeWordsCondition { MatchValue = "TESTING", MatchFunction = TRuleSomeWordsFunctionType.Equals, MultipleItemsMatch = TRuleMultipleItemsMatchType.AtLeastOneMatch }; var testXml = ToFormattedXml(testClass); Assert.AreEqual(_xml, testXml); }