using Microsoft.Xna.Framework.Content.Pipeline; using MonoGame.Extended.Content.Pipeline.TextureAtlases; using NSubstitute; using NUnit.Framework; namespace MonoGame.Extended.Content.Pipeline.Tests { [TestFixture] public class TexturePackerJsonImporterProcessorTests { [Test] public void TexturePackerJsonImporter_Import_Test() { var filePath = PathExtensions.GetApplicationFullPath(@"TestData/test-tileset.json"); var importer = new TexturePackerJsonImporter(); var data = importer.Import(filePath, Substitute.For()); Assert.IsNotNull(data); } [Test] public void TexturePackerJsonImporter_Processor_Test() { var filePath = PathExtensions.GetApplicationFullPath(@"TestData/test-tileset.json"); var importer = new TexturePackerJsonImporter(); var input = importer.Import(filePath, Substitute.For()); var processor = new TexturePackerProcessor(); var output = processor.Process(input, Substitute.For()); Assert.IsNotNull(output); } } }