public void TestIsEmailForUnicodeMSG() { IFile file = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "unicode.msg", "unicode.msg"); EmailAnalyzer analyzer = new EmailAnalyzer(); Assert.IsTrue(analyzer.IsEmail(file)); }
public void TestIsEmailForUnicodeMime() { IFile file = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "TagActionTestMail.eml", "TestBigDoc.txt"); EmailAnalyzer analyzer = new EmailAnalyzer(); Assert.IsTrue(analyzer.IsEmail(file)); }
public void TestIsEmailForASCIIMime() { IFile file = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "NonUnicodeMime.eml", "NonUnicodeMime.eml"); EmailAnalyzer analyzer = new EmailAnalyzer(); Assert.IsTrue(analyzer.IsEmail(file)); }
public void TestIsEmailForNormalTextFile() { IFile file = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "test.txt", "test.txt"); EmailAnalyzer analyzer = new EmailAnalyzer(); Assert.IsFalse(analyzer.IsEmail(file)); }
public void TestIsEmailForNonEmail() { IFile file = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "policyobjects.xml", "policyobjects.xml"); EmailAnalyzer analyzer = new EmailAnalyzer(); Assert.IsFalse(analyzer.IsEmail(file)); IFile file2 = Workshare.Policy.Engine.FileFactory.Create(TEST_FOLDER + "TestProfanity.doc", "TestProfanity.doc"); analyzer = new EmailAnalyzer(); Assert.IsFalse(analyzer.IsEmail(file2)); }