Exemplo n.º 1
0
        public void toLessSpaces()
        {
            WorkWithData workWithData = new WorkWithData();

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

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

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

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

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

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