public void ReturnInputXmlFilePath() { var path = "c:\\temp"; _configurationDataProvider.GetValueFromSectionAndKey(Arg.Any <string>(), Arg.Any <string>()).Returns(path); var result = _inputXmlFileWrapperShould.GetInputXmlFilePath(); NUnit.Framework.Assert.That(result, Is.EqualTo(path)); }
/// <summary> /// Get Output Csv File Path /// </summary> /// <returns></returns> public string GetOutputCsvFilePath() { var path = string.Empty; try { path = _configurationDataProvider.GetValueFromSectionAndKey("Parameters", "OutputFilePath"); } catch (Exception ex) { Logger.Error(ex.Message, ex); throw; } return(path); }
public void ReturnValueFromSectionAndKey()//from App.config { var result = _configurationDataProvider.GetValueFromSectionAndKey("UnitTests", "Test"); NUnit.Framework.Assert.That(result, Is.EqualTo("OK")); }