public void TRuleForwardToEmailAction_BuildXmlElement() { var testClass = new TRuleForwardToEmailAction(GetXmlNode(_xml)); Assert.AreEqual(TRuleActionType.Forward, testClass.Actiontype); Assert.AreEqual("email address", testClass.Email); }
public void TRuleForwardToEmailAction() { var testClass = new TRuleForwardToEmailAction { Actiontype = TRuleActionType.Forward, Email = "email address" }; var testXml = ToFormattedXml(testClass); Assert.AreEqual(_xml, testXml); }