public void ContainsInvalidParallelSection() { // Arrange string configFileContent = @" missing max duration PROGRAM-TASKS,5 PROGRAM-PROCESSORS,3 "; // Act string errorMsg = ConfigFileValidator.ContainsParallelSection(configFileContent); // Assert Assert.AreEqual(ConfigFileValidator.ConfigErrors["ParallelSection"], errorMsg); }
public void ContainsValidParallelSection() { // Arrange string configFileContent = @" PROGRAM-MAXIMUM-DURATION,9 PROGRAM-TASKS,5 PROGRAM-PROCESSORS,3 "; // Act string errorMsg = ConfigFileValidator.ContainsParallelSection(configFileContent); // Assert Assert.AreEqual("", errorMsg); }