Example #1
0
File: Tests.cs Project: mobydi/rx
        public void Test_Sample2()
        {
            var writer       = new TestWriter();
            var assembly     = Assembly.GetExecutingAssembly();
            var resourceName = "rx.test.samples.sample2.txt";

            using (Stream stream = assembly.GetManifestResourceStream(resourceName))
            {
                Processor.Split(stream, writer).Wait();
            }

            Assert.AreEqual("a, had, lamb, little, Mary\r\n" +
                            "Aesop, and, called, came, for, Peter, the, wolf\r\n" +
                            "Cinderella, likes, shoes\r\n",
                            writer.ToString());
        }
Example #2
0
File: Tests.cs Project: mobydi/rx
        public void Test_Sample3()
        {
            var writer       = new TestWriter();
            var assembly     = Assembly.GetExecutingAssembly();
            var resourceName = "rx.test.samples.sample3.txt";

            using (Stream stream = assembly.GetManifestResourceStream(resourceName))
            {
                Processor.Split(stream, writer).Wait();
            }

            Assert.AreEqual("a, had, lamb, little, Mary\r\n" +
                            "Aesop, and, called, came, for, Peter, the, wolf\r\n" +
                            "Cinderella, likes, shoes\r\n" +
                            "adipisicing, aliqua, amet, consectetur, do, dolor, dolore, eiusmod, elit, et, incididunt, ipsum, labore, Lorem, magna, sed, sit, tempor, ut\r\n" +
                            "ad, aliquip, commodo, consequat, ea, enim, ex, exercitation, laboris, minim, nisi, nostrud, quis, ullamco, ut, Ut, veniam\r\n" +
                            "aute, cillum, dolor, dolore, Duis, esse, eu, fugiat, in, in, irure, nulla, reprehenderit, velit, voluptate\r\n",
                            writer.ToString());
        }