Exemple #1
0
        public void toLessSpaces()
        {
            WorkWithData workWithData = new WorkWithData();

            workWithData.data = ".... . .-.. .-.. ---  .-- --- .-. .-.. -.."; //this String has 3 spaces instead of 4

            Assert.AreEqual(false, workWithData.controlData());
        }
Exemple #2
0
        public void wrongChars()
        {
            WorkWithData workWithData = new WorkWithData();

            workWithData.data = "a.... . .-.. .-.. ---   .-- --- .-. .-.. -.."; //this String contains a wrong char

            Assert.AreEqual(false, workWithData.controlData());
        }
Exemple #3
0
        public void correctData()
        {
            WorkWithData workWithData = new WorkWithData();

            workWithData.data = ".... . .-.. .-.. ---    .-- --- .-. .-.. -..";

            Assert.AreEqual(true, workWithData.controlData());
        }