public void TestBrailleDanish8LargeOcto()
        {
            string language = "daDK";
            string contraction = "large";
            string format = "octobraille";
            int    charsPerLine = 0, linesPerPage = 0;
            int    dots   = 8;
            var    apiRes = TestBrailleAPI(language, format, charsPerLine, linesPerPage, contraction, dots);

            NUnit.Framework.Assert.IsNotNull(apiRes);
            Assert.IsNotEmpty(apiRes);
            IOController.SaveTestResultFile(apiRes, "Braille-" + timestamp + "-" + language + "-" + contraction + "-" + format + "-" + dots + "-API.txt");
        }
        public void TestBrailleBulgarian6G1()
        {
            string language = "bgBG";
            string contraction = "grade1";
            string format = "none";
            int    charsPerLine = 0, linesPerPage = 0;
            int    dots   = 6;
            var    apiRes = TestBrailleAPI(language, format, charsPerLine, linesPerPage, contraction, dots);

            NUnit.Framework.Assert.IsNotNull(apiRes);
            Assert.IsNotEmpty(apiRes);
            IOController.SaveTestResultFile(apiRes, "Braille-" + timestamp + "-" + language + "-" + contraction + "-" + format + "-" + dots + "-API.txt");
        }
Exemple #3
0
        public void TestHtmlToTextTable()
        {
            //arrange
            string format   = "txt";
            string fileName = "A3.testHTMLtable.html";

            //act
            var apiRes = TestAPI(fileName);

            //assert and save to result dir
            NUnit.Framework.Assert.IsNotEmpty(apiRes);
            IOController.SaveTestResultFile(apiRes, "HtmlToTextTable-" + timestamp + "-API." + format);
        }
        public void TestCerthOcrPdfToHtml()
        {
            //arrange
            string format   = "html";
            string fileName = "A6.testPDF.pdf";

            //act
            var apiRes = TestCerthOcrAPI(true, fileName);

            //assert and save to result dir
            NUnit.Framework.Assert.IsNotEmpty(apiRes);
            IOController.SaveTestResultFile(apiRes, "CerthOcrPdf-" + timestamp + "-" + format + "-API." + format);
        }
        public void TestAudioEnGBSpacedText()
        {
            //arrange
            string file     = "A30.testSpacedTextEN.txt";
            string language = "enGB";
            string age      = "";
            string gender   = "Female";
            //act
            var apiRes = TestAudioAPIFile(file, language, age, gender);

            //assert
            Assert.IsNotNull(apiRes);
            IOController.SaveTestResultFile(apiRes, "Audio-" + timestamp + "-" + language + "-" + age + "-" + gender + "-API" + "-Spaced.mp3");
        }
        //takes 12 minutes
        //[Test]
        public void TestAudioDanishFemaleSaraLargeText()
        {
            //arrange
            string file     = "A29.testLargeTextDK.txt";
            string language = "daDK";
            string age      = "";
            string gender   = "Female";
            //act
            var apiRes = TestAudioAPIFile(file, language, age, gender);

            //assert
            Assert.IsNotNull(apiRes);
            IOController.SaveTestResultFile(apiRes, "Audio-" + timestamp + "-" + language + "-" + age + "-" + gender + "-API" + "-Large.mp3");
        }
        public void TestAudioArabic()
        {
            throw new NotImplementedException("Voice not installed");
            //arrange
            string language = Language.arEG.ToString();
            string age      = "";
            string gender   = "";
            //act
            var apiRes = TestAudioAPI(language, null, age, gender);

            //assert
            Assert.IsNotNull(apiRes);
            IOController.SaveTestResultFile(apiRes, "Audio-" + timestamp + "-" + language + "-" + age + "-" + gender + "-API" + ".mp3");
        }
        public void TestAudioRussian()
        {
            //arrange
            string language = Language.ruRU.ToString();
            string age      = "";
            string gender   = "";
            //act
            var apiRes = TestAudioAPI(language, null, age, gender);

            //var ftpRes = GetAudioGroundTruth(language, null, age, gender);
            //assert
            Assert.IsNotNull(apiRes);
            IOController.SaveTestResultFile(apiRes, "Audio-" + timestamp + "-" + language + "-" + age + "-" + gender + "-API" + ".mp3");
            //Assert.IsNotNull(ftpRes);
            //IOController.SaveTestResultFile(ftpRes, "Audio-" + timestamp + "-" + language + "-" + age + "-" + gender + "-FTP" + ".mp3");
            //Assert.AreEqual(RoboBrailleProcessor.GetMD5Hash(ftpRes), RoboBrailleProcessor.GetMD5Hash(apiRes));
        }
        public void TestAudioArabicEnglish()
        {
            throw new NotImplementedException("Voice not installed");
            //arrange
            string language = Language.arEG.ToString();
            string age      = "";
            string gender   = "";
            List <VoicePropriety> properties = new List <VoicePropriety>()
            {
                VoicePropriety.Bilingual
            };
            //act
            var apiRes = TestAudioAPI(language, properties, age, gender);

            //assert
            Assert.IsNotNull(apiRes);
            IOController.SaveTestResultFile(apiRes, "Audio-" + timestamp + "-" + language + "-" + VoicePropriety.Bilingual + "-" + gender + "-API" + ".mp3");
        }