Beispiel #1
0
        public void ShouldThrowIfEnvironmentNotFound()
        {
            operation.EnvironmentNames = new[] { "Atlantis" };
            Func <Task> exec = () => operation.ExecuteAsync(serverEndpoint);

            exec.ShouldThrow <ArgumentException>().WithMessage("Could not find the environment Atlantis on the Octopus server.");
        }
        public void ShouldThrowIfEnvironmentNotFound()
        {
            operation.EnvironmentNames = new[] { "Atlantis" };
            Func <Task> exec = () => operation.ExecuteAsync(serverEndpoint);

            exec.ShouldThrow <ArgumentException>().WithMessage("Could not find the environment named Atlantis on the Octopus server. Ensure the environment exists and you have permission to access it.");
        }