Example #1
0
        public void FormatSimpleJson()
        {
            string msg          = "{\"component\": \"AutoCheckOrder\",\"environment\": \"BACKOFFICE\"}";
            string formattedMsg = "\r\n{\r\n\t\"component\": \"AutoCheckOrder\",\r\n\t\"environment\": \"BACKOFFICE\"\r\n}\r\n";
            var    listener     = new FileListener();

            listener.SetConfigValue("structured", "json");
            var f   = new StructuredMessageFormatter(msg, listener);
            var foo = f.Message();

            Assert.AreEqual(formattedMsg, foo);
        }