public void OutputFormatSingleWithTemplateFormatInfoTest()
 {
     var exl = new CleanExampleChild
     {
         BaseId = 1,
         BaseTitle = "Base element",
         Amount = 23.5439,
         ChildId = 11,
         Complex = new CleanExampleComplex { Title = "Antoni", Value = 7 }
     };
     IOutputFormat formatter = new TextOutputFormat(new ExampleFormatProvider());
     var result = formatter.FormatSingle(exl);
     var expected = "ROOT ID: 1" + Environment.NewLine +
                    "BaseTitle: Base element" + Environment.NewLine +
                    "Inner ID: 11" + Environment.NewLine +
                    "Amount: 23,54 zł" + Environment.NewLine +
                    "Employ receive: Antoni: 7,00";
     Assert.Equal(expected, result);
 }
 public void OutputFormatSingleTest()
 {
     var exl = new ExampleChild
     {
         BaseId = 1,
         BaseTitle = "Base element",
         Amount = 23.5439,
         ChildId = 11,
         Complex = new ExampleComplex { Title = "Antoni", Value = 7 }
     };
     IOutputFormat formatter = new TextOutputFormat();
     var result = formatter.FormatSingle(exl);
     var expected = "Base ID: 1" + Environment.NewLine +
                    "Base title: Base element" + Environment.NewLine +
                    "Inner ID: 11" + Environment.NewLine +
                    "Amount: 23,54 zł" + Environment.NewLine +
                    "Complex:" + Environment.NewLine + "Antoni: 7,00";
     Assert.Equal(expected, result);
 }