Пример #1
0
        public void GetFileText_NonExistentFile_Test()
        {
            string path = "Bso.Archive.BusObj.EmailTemplates";

            string filename = "NonExistent.htm";

            string fileContent = EmailFunction.GetFileText(path, filename);

            Assert.IsTrue(string.IsNullOrEmpty(fileContent));
        }
Пример #2
0
        public void GetFileTextTest()
        {
            string path = "Bso.Archive.BusObj.EmailTemplates";

            string filename = "ShareSearchResult.htm";

            string fileContent = EmailFunction.GetFileText(path, filename);

            Assert.IsTrue(fileContent.Contains("#RECIPIENT_NAME"));
        }