3d288f3489
* Fix up converters to target all assemblies in the AppDomain * Make test more robust * Make test more robust v2 electric boogaloo
28 lines
683 B
C#
28 lines
683 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);
|
|
}
|
|
}
|