mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using System;
|
|
using System.IO;
|
|
using MonoGame.Extended.Content.Pipeline.Animations;
|
|
using Xunit;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.Tests
|
|
{
|
|
|
|
public class AstridAnimatorProcessorTests
|
|
{
|
|
[Fact]
|
|
public void AstridAnimatorProcessor_Process_Test()
|
|
{
|
|
var filePath = PathExtensions.GetApplicationFullPath("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.Equal("astrid-animator-atlas", result.TextureAtlasAssetName);
|
|
Assert.Equal("TestData", Path.GetFileName(result.Directory));
|
|
Assert.Equal(3, result.Frames.Count);
|
|
Assert.Equal("appear_01", result.Frames[0]);
|
|
Assert.Equal("appear_02", result.Frames[1]);
|
|
Assert.Equal("die_01", result.Frames[2]);
|
|
}
|
|
}
|
|
} |