public void ContainsInvalidLogFilePath() { // Arrange string configFileContent = @" Log file path is missing in this 'file content' "; // Act string errorMsg = ConfigFileValidator.ContainsLogFilePath(configFileContent); // Assert Assert.AreEqual(ConfigFileValidator.ConfigErrors["LogFilePath"], errorMsg); }
public void ContainsValidLogFilePath() { // Arrange string configFileContent = @" // The default log file name. DEFAULT-LOGFILE,""AT1 - log.txt"" "; // Act string errorMsg = ConfigFileValidator.ContainsLogFilePath(configFileContent); // Assert Assert.AreEqual("", errorMsg); }