blob: 4172ee21a2a8b1888e7c0ae792fbdc9f417009ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using Microsoft.Xna.Framework.Content.Pipeline;
using MonoGame.Extended.Content.Pipeline.TextureAtlases;
using NSubstitute;
using Xunit;
namespace MonoGame.Extended.Content.Pipeline.Tests
{
public class TexturePackerJsonImporterProcessorTests
{
[Fact]
public void TexturePackerJsonImporter_Import_Test()
{
var filePath = PathExtensions.GetApplicationFullPath(@"TestData/test-tileset.json");
var importer = new TexturePackerJsonImporter();
var data = importer.Import(filePath, Substitute.For<ContentImporterContext>());
Assert.NotNull(data);
}
[Fact]
public void TexturePackerJsonImporter_Processor_Test()
{
var filePath = PathExtensions.GetApplicationFullPath(@"TestData/test-tileset.json");
var importer = new TexturePackerJsonImporter();
var input = importer.Import(filePath, Substitute.For<ContentImporterContext>());
var processor = new TexturePackerProcessor();
var output = processor.Process(input, Substitute.For<ContentProcessorContext>());
Assert.NotNull(output);
}
}
}
|