public void TestMethod3() { personas strresult = new personas(); pReadFile objread = new pReadFile(); var currentdirectory = System.IO.Directory.GetParent(Environment.CurrentDirectory).Parent.FullName; strresult = objread.getObjetctfromXML(new clsModel() { strpath = string.Concat(currentdirectory, @"\files\XMLFileTest.xml") }); Assert.IsNotNull(strresult); }
public void TestMethod2() { byte[] strresult; pReadFile objread = new pReadFile(); var currentdirectory = System.IO.Directory.GetParent(Environment.CurrentDirectory).Parent.FullName; strresult = objread.getAllBytesfromFile(new clsModel() { strpath = string.Concat(currentdirectory, @"\files\XMLFileTest.xml") }); Assert.IsNotNull(strresult); strresult = objread.getAllBytesfromFile(new clsModel() { strpath = string.Concat(currentdirectory, @"\files\TextFileTest.txt") }); Assert.IsNotNull(strresult); }