public void EncryptionMessageWhenNumberOfRandomLetersIsZeroTest()
        {
            var problems = new SecondProblems();
            var noColumns = 4;
            var noLines = problems.GetNumberLines("Nicaierinuecaaca", noColumns);
            var noLetersRandom = problems.GetNumberLetersRandom("Nicaierinuecaaca", noColumns, noLines);
            var messageEncryption = problems.EncryptionMessage("Nicaieri, nu e ca aca!", noColumns);

            Assert.AreEqual(noLetersRandom,0);
            Assert.AreEqual(noLines,4);
            Assert.AreEqual(messageEncryption, "Ninaieuacrecaica");
        }
        public void EncryptionMessageWhenNumberOfRandomLetersIsOneTest()
        {
            var problems = new SecondProblems();
            var noColumns = 4;
            var noLines = problems.GetNumberLines("Nicaierinuecaacasaa", noColumns);
            var noLetersRandom = problems.GetNumberLetersRandom("Nicaierinuecaacasaa", noColumns, noLines);
            var messageEncryption = problems.EncryptionMessage("Nicaieri, nu e ca acasaa!", noColumns);
            var messageEncryptionClean = messageEncryption;

            messageEncryptionClean = messageEncryptionClean.Remove(messageEncryptionClean.Length - noColumns * (noLetersRandom - 1) -1 , 1);

            Assert.AreEqual(noLetersRandom, 1);
            Assert.AreEqual(noLines, 5);
            Assert.AreEqual(messageEncryptionClean, "Neeaircsciaaanaaiuc");
        }
 public void NumerLeterRandomTest()
 {
     var problems = new SecondProblems();
     var noLetersRandom = problems.GetNumberLetersRandom("Nicaierinuecaacasa", 4, 5);
     Assert.AreEqual(noLetersRandom, 2);
 }