using Falcon.SugarApi.JsonSerialize;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Text.Json;
namespace Falcon.SugarApi.Test
{
///
/// Json序列化测试
///
[TestClass]
public class JsonSerializeTest {
///
/// 注入测试
///
[TestMethod]
public void JsonSerializeDITest() {
var service = new ServiceCollection();
service.AddSingleton();
service.AddSingleton(new JsonSerializerOptions());
var provider = service.BuildServiceProvider();
var _ = provider.GetService();
service = new ServiceCollection();
service.AddSingleton();
provider = service.BuildServiceProvider();
_ = provider.GetService();
}
}
}