public void TRuleForwardToEmailAction_BuildXmlElement() { var testClass = new TRuleCopyToFolderAction(GetXmlNode(_xml)); Assert.AreEqual(TRuleActionType.CopyFolder, testClass.Actiontype); Assert.AreEqual("target folder", testClass.Folder); }
public void TRuleForwardToEmailAction() { var testClass = new TRuleCopyToFolderAction { Actiontype = TRuleActionType.CopyFolder, Folder = "target folder" }; var testXml = ToFormattedXml(testClass); Assert.AreEqual(_xml, testXml); }