Ejemplo n.º 1
0
        public void test_mark_message_lines_2()
        {
            var lines = new[]
            {
                "Just testing the email reply",
                "",
                "Robert J Samson",
                "Sent from my iPhone",
                "",
                //# all 3 next lines should be marked as splitters
                "On Nov 30, 2011, at 12:47 PM, Skapture <",
                "*****@*****.**>",
                "wrote:",
                "",
                "Tarmo Lehtpuu has posted the following message on"
            };

            Quotations.MarkMessageLines(lines).ShouldBe("tettessset");
        }
Ejemplo n.º 2
0
        public void test_mark_message_lines_1()
        {
            // e - empty line
            // s - splitter line
            // m - line starting with quotation marker ">"
            // t - the rest

            var lines = new[]
            {
                "Hello", "",
                //# next line should be marked as splitter
                "_____________",
                "From: [email protected]",
                "",
                "> Hi",
                "",
                "Signature"
            };

            Quotations.MarkMessageLines(lines).ShouldBe("tessemet");
        }