public void RenderTwoPatterns()
        {
            var patternCollectionAdapter = new PatternCollectionDbAdapter();
            var myRenderer = new PatternRenderer(patternCollectionAdapter);
            var writer = new StringWriter();
            myRenderer.Render(writer);
            string result = writer.ToString();
            Console.Write(result);

            int lineCount = result.Count(c => c == '\n');
            Assert.AreEqual(4, lineCount);
        }
Example #2
0
        public void RenderTwoPatterns()
        {
            var patternCollectionAdapter = new PatternCollectionDbAdapter();
            var myRenderer = new PatternRenderer(patternCollectionAdapter);
            var writer     = new StringWriter();

            myRenderer.Render(writer);
            string result = writer.ToString();

            Console.Write(result);

            int lineCount = result.Count(c => c == '\n');

            Assert.AreEqual(4, lineCount);
        }