コード例 #1
0
        public void TRuleForwardToEmailAction_BuildXmlElement()
        {
            var testClass = new TRuleCopyToFolderAction(GetXmlNode(_xml));

            Assert.AreEqual(TRuleActionType.CopyFolder, testClass.Actiontype);
            Assert.AreEqual("target folder", testClass.Folder);
        }
コード例 #2
0
        public void TRuleForwardToEmailAction()
        {
            var testClass = new TRuleCopyToFolderAction
            {
                Actiontype = TRuleActionType.CopyFolder,
                Folder     = "target folder"
            };

            var testXml = ToFormattedXml(testClass);

            Assert.AreEqual(_xml, testXml);
        }