Exemple #1
0
 public void Export()
 {
     TestJsonWriter writer = new TestJsonWriter();
     IJsonExportable number = Number("123");
     number.Export(new ExportContext(), writer);
     Assert.AreEqual("123", writer.WrittenValue);
 }
 public void JsonFormatting()
 {
     TestJsonWriter writer = new TestJsonWriter();
     JsonNumber number = Number("123");
     number.Export(writer);
     Assert.AreEqual("123", writer.WrittenValue);
 }