holopy3/Assets/UniGLTF/UniJSON/Editor/Tests/JsonFormatterTest.cs

22 lines
428 B
C#
Raw Permalink Normal View History

2021-01-28 12:07:52 +00:00
using NUnit.Framework;
using UnityEngine;
namespace UniJSON
{
public class JsonFormatterTests
{
[Test]
public void IndentTest()
{
var formatter = new JsonFormatter(2);
formatter.BeginMap();
formatter.Key("a"); formatter.Value(1);
formatter.EndMap();
var json = formatter.ToString();
Debug.Log(json);
}
}
}