コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }