public void ContainsInvalidRuntimes() { // Arrange string configFileContent = @" // Task IDs and their runtime values. TASK-ID,RUNTIME something else "; // Act string errorMsg = ConfigFileValidator.ContainsRuntimes(configFileContent); // Assert Assert.AreEqual(ConfigFileValidator.ConfigErrors["Runtimes"], errorMsg); }
public void ContainsInvalidRuntimesIds() { // Arrange string configFileContent = @" // The task with id 1 is specified twice TASK-ID,RUNTIME 1,1 1,3 3,5 4,7 5,9 "; // Act string errorMsg = ConfigFileValidator.ContainsRuntimes(configFileContent); // Assert Assert.AreEqual(ConfigFileValidator.ConfigErrors["RuntimesIds"], errorMsg); }
public void ContainsValidRuntimes() { // Arrange string configFileContent = @" // Task IDs and their runtime values. TASK-ID,RUNTIME 1,1 2,3 3,5 4,7 5,9 "; // Act string errorMsg = ConfigFileValidator.ContainsRuntimes(configFileContent); // Assert Assert.AreEqual("", errorMsg); }