private static void BuildMtp(string fullPath) { var motionPackage = MotionPackage.FromDirectory(fullPath); var filePath = Path.Combine(Path.GetDirectoryName(fullPath), $"{Path.GetFileNameWithoutExtension(fullPath)}.{MtpExtension}"); File.WriteAllBytes(filePath, motionPackage.ToMtp()); Console.WriteLine($"Written MTP To: {filePath}"); }
public void SameAsOriginal_OrderNonAlphabeticalNames_Export() { var package = MotionPackage.FromMtp(Assets.Assets.Shadow()); var directory = InitializeDirectory(ShadowDirectory); package.ToDirectory(directory); var newPackage = MotionPackage.FromDirectory(directory); Assert.Equal(package, newPackage); }
public void ExportSingle() { var package = MotionPackage.FromMtp(Assets.Assets.BkLarva()); var directory = InitializeDirectory(BkLarvaDirectory); package.ToDirectory(directory); var newPackage = MotionPackage.FromDirectory(directory); Assert.Equal(package, newPackage); }
public void ExportMulti() { var package = MotionPackage.FromMtp(Assets.Assets.BkChaos()); var directory = InitializeDirectory(BkChaosDirectory); package.ToDirectory(directory); var newPackage = MotionPackage.FromDirectory(directory); Assert.Equal(package, newPackage); }
public void ExportMulti_MissingSomeProperties() { // MTP with multiple MTNs and some MTNs with no associated properties var package = MotionPackage.FromMtp(Assets.Assets.SuperShadow()); var directory = InitializeDirectory(SuperShadowDirectory); package.ToDirectory(directory); var newPackage = MotionPackage.FromDirectory(directory); Assert.Equal(package, newPackage); }