Files
SPT-Server-Build/UnitTests/Tests/Test.cs
T
2025-06-18 17:09:20 +00:00

31 lines
728 B
C#

using SPTarkov.Server.Core.Models.Spt.Templates;
using SPTarkov.Server.Core.Utils;
using SPTarkov.Server.Core.Utils.Json.Converters;
using UnitTests.Mock;
namespace UnitTests.Tests;
[TestClass]
public class Test
{
private Templates? _templates;
[TestInitialize]
public async Task Setup()
{
var importer = new ImporterUtil(
new MockLogger<ImporterUtil>(),
new FileUtil(),
DI.GetService<JsonUtil>()
);
_templates = await importer.LoadRecursiveAsync<Templates>("./TestAssets/");
}
[TestMethod]
public void TestMethod1()
{
var result = DI.GetService<JsonUtil>().Serialize(_templates);
Console.WriteLine(result);
}
}