public void testFileHandler_readFileAsArray_valid() { fileHandler fh = new file_handler.fileHandler(); fh.getFileName("4x4.txt"); Assert.AreEqual("4 2 - 1", fh.readFileAsArray()[0]); Assert.AreEqual("- - - 2", fh.readFileAsArray()[1]); Assert.AreEqual("3 - 2 -", fh.readFileAsArray()[2]); Assert.AreEqual("- 4 - 3", fh.readFileAsArray()[3]); }
public void testFileHandler_readFileAsArray_invalid() { fileHandler fh = new file_handler.fileHandler(); Assert.AreSame(new String[] { }.GetType(), fh.readFileAsArray().GetType()); }