Exemple #1
0
        private static void TestEmpty(IAssetReader reader, string filename)
        {
            var assets = reader.Read(Path.Combine(IDIR, filename), -1).Assets;

            foreach (var asset in assets)
            {
                asset.TransPairs.Count().Is(0);
            }
        }
Exemple #2
0
        protected static void Comprehensive(IAssetReader reader, string filename)
        {
            var bundle = reader.Read(Path.Combine(IDIR, filename), -1);
            var got    = new PairVisualizer().Visualize(bundle.Assets);

            var dumpname = Path.GetFileNameWithoutExtension(filename) + ".dump";
            var expected = File.ReadAllText(Path.Combine(ODIR, dumpname));

            got.Is(expected);
        }
        private static void Dump(IAssetReader rd, string input)
        {
            string IDIR = @"..\..\Samples";
            string ODIR = @"..\..\Expected";

            var bundle     = rd.Read(Path.Combine(IDIR, input), -1);
            var visualized = new PairVisualizer().Visualize(bundle.Assets);
            var output     = Path.GetFileNameWithoutExtension(input) + ".dump";

            File.WriteAllText(Path.Combine(ODIR, output), visualized);
        }