mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
22 lines
623 B
C#
22 lines
623 B
C#
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using MonoGame.Extended.Content.Pipeline.Tiled;
|
|
using NSubstitute;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.Tests
|
|
{
|
|
[TestFixture]
|
|
public class TiledMapImporterTests
|
|
{
|
|
[Test]
|
|
public void TiledMapImporter_Import_Test()
|
|
{
|
|
const string filename = @"TestData\level01.tmx";
|
|
var importer = new TiledMapImporter();
|
|
var data = importer.Import(filename, Substitute.For<ContentImporterContext>());
|
|
|
|
Assert.AreEqual("Tile Layer 2", data.Layers[0].Name);
|
|
}
|
|
}
|
|
}
|