public void GoodCreation() { var pdr = new PatientDataReader(@"..\..\..\TestData.csv"); Assert.AreEqual(dataLine1, pdr.getData()); Assert.AreEqual(dataLine2, pdr.getData()); }
public void GoodUnconnectedCreation() { // Checks to see whether the file called DataTest.csv contains the values setup above. // If the values in the DataTest.csv are equal to the the values setup. The test will pass. (NW) var dataReader = new PatientDataReader(); dataReader.Connect(@"..\..\..\DataTest.csv"); Assert.AreEqual(FirstLine, dataReader.GetData()); Assert.AreEqual(SecondLine, dataReader.GetData()); }
public void BadUnconnectedFileName() { var pdr = new PatientDataReader(); pdr.Connect(@"..\..\..\NonExistant.csv"); }
public void HasGoodCreation() { // Checks to see whether there is a file named DataTest within the same directory as NewPatientMonitor. (NW) var dataReader = new PatientDataReader(@"..\..\..\DataTest.csv"); }