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)); }
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")); }