Exemplo n.º 1
0
        public void Read_the_body_template()
        {
            // arrange
            var contents = TemplateTestData.EmailTemplate();
            var template = new EmailTemplate(contents);

            // act
            var actual = template.Body;

            // assert
            Assert.AreEqual("The title is @@System.Title@@ <u>for</u> the @@System.ID@@ by ##System.ChangedBy##", actual);
        }
Exemplo n.º 2
0
        public void Read_the_alertitem_header_template()
        {
            // arrange
            var contents = TemplateTestData.EmailTemplate();
            var template = new EmailTemplate(contents);

            // act
            var actual = template.AlertFieldHeader;

            // assert
            Assert.AreEqual("<br /><strong><u>All changed fields in the alert</strong></u>", actual);
        }
Exemplo n.º 3
0
        public void Read_the_title_template()
        {
            // arrange
            var contents = TemplateTestData.EmailTemplate();
            var template = new EmailTemplate(contents);

            // act
            var actual = template.Title;

            // assert
            Assert.AreEqual("The Work Item @@System.ID@@ has been edited", actual);
        }