public void Test_ReadXMLFileOfHistoricalData_CheckIFAnemptyFilePassedToXMLFileOfHistoricalDataReturnsANULL_ReturnsNullIFEmpty()
        {
            //Arrange
            newData = new HistoricalData();
            Dictionary<string, Dictionary<string, double>> Result;

            //Act
            string path = string.Empty;
            Result = newData.ReadXMLFile(path);

            //Assert
            Assert.IsNull(Result);
        }
 public void Cleanup()
 {
     newData = null;
 }
 public void Setup()
 {
     newData=null;
 }
Example #4
0
 public virtual Dictionary<string, Dictionary<string, double>> GetHistoricalData()
 {
     HistoricalData data1 = new HistoricalData();
     data1.ReadXMLFile(@"C:\Users\Tolani.Jaiye-Tikolo\Documents\C#workspace\CurrencyConverter\currencyrate90days.xml");
       return HistoricalData.getDictionary();
 }