public void TestWrongParameters()
        {
            FileTranslator translator = new FileTranslator(null, null);

            translator.ReadFile();

            if (translator.inputFile.Length > 0)
            {
                Console.WriteLine("Length of the input file: " + translator.inputFile.Length);
            }
        }
        public void TestWriting()
        {
            FileTranslator translator = new FileTranslator("morse.txt", "text.txt");

            translator.ReadFile();

            FileInfo info     = new FileInfo("text.txt");
            long     filesize = info.Length;

            if (filesize > 0)
            {
                Assert.IsFalse(false);
            }
            else
            {
                Assert.IsFalse(true);
            }
        }
        public void CorrectChars()
        {
            FileTranslator translator = new FileTranslator("morse.txt", "text.txt");

            translator.ReadFile();

            char[] test = translator.morseText.ToString().ToCharArray();

            for (int i = 0; i < test.Length; i++)
            {
                if (test[i] == ' ' || test[i] == '.' || test[i] == '-')
                {
                    Console.WriteLine("Correct chars");
                }
                else
                {
                    Assert.Fail("Wrong characters in the morse code!");
                }
            }
        }
        public void TestRuntime()
        {
            FileTranslator translator = new FileTranslator("morse.txt", "text.txt");

            translator.ReadFile();
        }