public void ShouldGetAnimationFramesATTStab() { string rawFile = Helpers.Helpers.LoadFile(@"Player04.png.meta"); SpriteSheetData spriteSheetData = SpriteParser.Parse(rawFile); List <string> frames = spriteSheetData.GetAnimationFrames("PL04_UpLeft_ATTStab").ToList(); frames.Should().HaveCount(2); frames[0].Should().Be("PL04_UpLeft_ATTStab1"); frames[1].Should().Be("PL04_UpLeft_ATTStab2"); }
public void ShouldGetAnimationFramesDownRight() { string rawFile = Helpers.Helpers.LoadFile(@"Player04.png.meta"); SpriteSheetData spriteSheetData = SpriteParser.Parse(rawFile); List <string> frames = spriteSheetData.GetAnimationFrames("PL04_DownRight_Walk").ToList(); frames.Should().HaveCount(3); frames[0].Should().Be("PL04_DownRight_Walk0"); frames[1].Should().Be("PL04_DownRight_Walk1"); frames[2].Should().Be("PL04_DownRight_Walk2"); }