public void MessageContainsCommand(string command) { // Act var sut = new DockerCommandException(command, new string[0]); // Assert sut.Message.Should().Contain($"Command: {command}{Environment.NewLine}"); }
public void MessageContainsOutput() { // Arrange var output = new[] { "output1", string.Empty, null, "/t", "output4" }; // Act var sut = new DockerCommandException("test command", output); // Assert sut.Message.Should().Contain($"Process Output:{Environment.NewLine}{string.Join(Environment.NewLine, output)}"); }
protected override void ErrorAction(DockerCommandException e) => throw new DockerContainerNotFoundException(Id, e);
protected virtual void ErrorAction(DockerCommandException e) => throw new NotImplementedException();