public void toLessSpaces() { WorkWithData workWithData = new WorkWithData(); workWithData.data = ".... . .-.. .-.. --- .-- --- .-. .-.. -.."; //this String has 3 spaces instead of 4 Assert.AreEqual(false, workWithData.controlData()); }
public void wrongChars() { WorkWithData workWithData = new WorkWithData(); workWithData.data = "a.... . .-.. .-.. --- .-- --- .-. .-.. -.."; //this String contains a wrong char Assert.AreEqual(false, workWithData.controlData()); }
public void correctData() { WorkWithData workWithData = new WorkWithData(); workWithData.data = ".... . .-.. .-.. --- .-- --- .-. .-.. -.."; Assert.AreEqual(true, workWithData.controlData()); }