mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
29 lines
994 B
C#
29 lines
994 B
C#
using MonoGame.Extended.Content.Pipeline.Animations;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.Tests
|
|
{
|
|
[TestFixture]
|
|
public class AstridAnimatorProcessorTests
|
|
{
|
|
[Test]
|
|
public void AstridAnimatorProcessor_Process_Test()
|
|
{
|
|
const string filePath = @"TestData\astrid-animator.aa";
|
|
|
|
var importer = new AstridAnimatorImporter();
|
|
var importerResult = importer.Import(filePath, null);
|
|
|
|
var processor = new AstridAnimatorProcessor();
|
|
var result = processor.Process(importerResult, null);
|
|
|
|
|
|
Assert.AreEqual("astrid-animator-atlas", result.TextureAtlasAssetName);
|
|
Assert.AreEqual("TestData", result.Directory);
|
|
Assert.AreEqual(3, result.Frames.Count);
|
|
Assert.AreEqual("appear_01", result.Frames[0]);
|
|
Assert.AreEqual("appear_02", result.Frames[1]);
|
|
Assert.AreEqual("die_01", result.Frames[2]);
|
|
}
|
|
}
|
|
} |