public static void Write(object o, int depth, TextWriter log, IEnumerable<string> exclusions)
 {
     IDumperWriterStrategy strategy = new TextWriterStrategy(depth, exclusions, log);
     strategy.Write(o);
 }
        public void TestTextWriterConstructor()
        {
            long expected = 195;
            long result = Int64.MinValue;

            using (MemoryStream stream = new MemoryStream())
            {
                using (StreamWriter textWriter = new StreamWriter(stream))
                {
                    TextWriterStrategy strategy = new TextWriterStrategy(textWriter);
                    strategy.Write(One);
                    textWriter.Flush();
                    result = stream.Length;
                }
            }

            Assert.AreEqual(expected, result);
        }
 public static void Write(object o, int depth, TextWriter log, params string[] exclusions)
 {
     IDumperWriterStrategy strategy = new TextWriterStrategy(depth, exclusions, log);
     strategy.Write(o);
 }
        public void TestTextWriterWithListOfListWithDepth()
        {
            long expected = 750;
            long result = Int64.MinValue;

            using (MemoryStream stream = new MemoryStream())
            {
                using (StreamWriter textWriter = new StreamWriter(stream))
                {
                    TextWriterStrategy strategy = new TextWriterStrategy(2, textWriter);
                    strategy.Write(Three);
                    textWriter.Flush();
                    result = stream.Length;
                }
            }

            Assert.AreEqual(expected, result);
        }