wabbajack/Wabbajack.DTOs.Test/ArchiveTests.cs

23 lines
521 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using Wabbajack.DTOs.JsonConverters;
using Wabbajack.Paths.IO;
using Xunit;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.Test;
public class ArchiveTests
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
private readonly DTOSerializer _serializer;
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
public ArchiveTests(DTOSerializer serializer)
{
_serializer = serializer;
}
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[Fact]
public void CanLoadPolymorphicStates()
{
var jsonPath = KnownFolders.EntryPoint.Combine(@"Resources\HttpArchiveSample.json");
var data = _serializer.Deserialize<Archive>(jsonPath.ReadAllText());
2021-09-27 12:42:46 +00:00
}
}