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}");
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }