public void testExport()
 {
     var exporter = new ImportExportNGUILocalization.NGUICSVExporter(new List<TransfluentLanguage>
     {
         new TransfluentLanguage {code = "en-us", id = 148, name = "English (United States)"}
     }
         );
     Assert.NotNull(exporter.getCSV());
     Debug.Log(exporter.getCSV());
 }
        public void testExport()
        {
            var exporter = new ImportExportNGUILocalization.NGUICSVExporter(new List <TransfluentLanguage>
            {
                new TransfluentLanguage {
                    code = "en-us", id = 148, name = "English (United States)"
                }
            }
                                                                            );

            Assert.NotNull(exporter.getCSV());
            Debug.Log(exporter.getCSV());
        }
        public void testImportExport()
        {
            //escapedTex,""foobar foo bar monkey potatoe, lots of dandruff,"""" if a quiz is quizzical, what's a test"",not escaped at all.  I'm still trying to break out

            var importer = new ImportExportNGUILocalization.NGUILocalizationCSVImporter(fakeImportString);
            Dictionary<string, Dictionary<string, string>> map = importer.getMapOfLanguagesToKeyValueTranslations();
            Assert.NotNull(map);
            Assert.IsTrue(map.ContainsKey("English"));
            Assert.IsTrue(map.ContainsKey("Français"));

            var exporter = new ImportExportNGUILocalization.NGUICSVExporter(map);
            string resultCSV = exporter.getCSV();
            string cleanInput = fakeImportString.Replace("\r\n", "\n");
            Debug.Log(resultCSV);
            Debug.Log(cleanInput);
            Assert.AreEqual(cleanInput, resultCSV);
        }
        public void testImportExport()
        {
            //escapedTex,""foobar foo bar monkey potatoe, lots of dandruff,"""" if a quiz is quizzical, what's a test"",not escaped at all.  I'm still trying to break out

            var importer = new ImportExportNGUILocalization.NGUILocalizationCSVImporter(fakeImportString);
            Dictionary <string, Dictionary <string, string> > map = importer.getMapOfLanguagesToKeyValueTranslations();

            Assert.NotNull(map);
            Assert.IsTrue(map.ContainsKey("English"));
            Assert.IsTrue(map.ContainsKey("Français"));

            var    exporter   = new ImportExportNGUILocalization.NGUICSVExporter(map);
            string resultCSV  = exporter.getCSV();
            string cleanInput = fakeImportString.Replace("\r\n", "\n");

            Debug.Log(resultCSV);
            Debug.Log(cleanInput);
            Assert.AreEqual(cleanInput, resultCSV);
        }