Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }
Example #5
0
        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));
        }