Ejemplo n.º 1
0
        public static void GetEnvironmentFromPath_ReturnsExpectedResult(string path,
                                                                        DeployEnvironment expectedEnvironment)
        {
            var result = ConfigParser.GetEnvironmentFromPath(path);

            Assert.That(result, Is.EqualTo(expectedEnvironment));
        }
Ejemplo n.º 2
0
 public static void GetEnvironmentFromPath_Throws(string path)
 {
     Assert.That(() => ConfigParser.GetEnvironmentFromPath(path), Throws.ArgumentException);
 }