Пример #1
0
        public void GoodCreation()
        {
            var pdr = new PatientDataReader(@"..\..\..\TestData.csv");

            Assert.AreEqual(dataLine1, pdr.getData());
            Assert.AreEqual(dataLine2, pdr.getData());
        }
Пример #2
0
        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());
        }
Пример #3
0
        public void BadUnconnectedFileName()
        {
            var pdr = new PatientDataReader();

            pdr.Connect(@"..\..\..\NonExistant.csv");
        }
Пример #4
0
 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");
 }