using System.Collections; using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; //using TinaX.VFSKit.JsonModel; using UnityEditor; namespace Tests { public class AssetsHashInfoSerializeTest { // A Test behaves as an ordinary method [Test] public void AssetsHashInfoSerializeTestSimplePasses() { //var hashInfo = new AssetsHashInfo(); //hashInfo.AddHashInfo("Assets/Test1/A.png", "Test"); //hashInfo.AddHashInfo("Assets/Test1/B.png", "Test2"); //hashInfo.AddHashInfo("Assets/Test1/C.png", "Test3"); //hashInfo.AddHashInfo("Assets/Test2/MEOW.txt", "Test"); //hashInfo.AddHashInfo("Assets/Test3.png", "Test"); //hashInfo.AddHashInfo("Assets/Test4/aaa/aaa.json", "Test"); ////尝试序列化到Json //var json = JsonUtility.ToJson(hashInfo); //TestContext.Out.WriteLine("尝试序列化,得到的json结果为:\n" + json); } } }