public void ContainsInvalidProcessorFrequencies()
        {
            // Arrange
            string configFileContent = @"   
                // Processor IDs and their frequency values.
                2,2.9
            ";

            // Act
            string errorMsg = ConfigFileValidator.ContainsProcessorFrequencies(configFileContent);

            // Assert
            Assert.AreEqual(ConfigFileValidator.ConfigErrors["ProcessorFrequencies"], errorMsg);
        }
        public void ContainsInvalidProcessorFrequenciesIds()
        {
            // Arrange
            string configFileContent = @"   
                // Processor with id 1 is used more than once
                PROCESSOR-ID,FREQUENCY
                1,1.7
                2,2.3
                1,2.9
            ";

            // Act
            string errorMsg = ConfigFileValidator.ContainsProcessorFrequencies(configFileContent);

            // Assert
            Assert.AreEqual(ConfigFileValidator.ConfigErrors["ProcessorFrequenciesIds"], errorMsg);
        }
        public void ContainsValidProcessorFrequencies()
        {
            // Arrange
            string configFileContent = @"   
                // Processor IDs and their frequency values.
                PROCESSOR-ID,FREQUENCY
                1,1.7
                2,2.3
                3,2.9
            ";

            // Act
            string errorMsg = ConfigFileValidator.ContainsProcessorFrequencies(configFileContent);

            // Assert
            Assert.AreEqual("", errorMsg);
        }