public void WhenEntrypointIsSet_CommandLineIsCorrect() { var fixture = new DockerComposeRunFixture { Command = "cmd", Settings = new DockerComposeRunSettings { Entrypoint = "somepoint" }, }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("run --entrypoint \"somepoint\" cmd")); }
public void WhenTwoVolumesAreSet_CommandLineIsCorrect() { var fixture = new DockerComposeRunFixture { Command = "cmd", Settings = new DockerComposeRunSettings { Volume = new[] { "host:guest", "host2:guest2" } }, }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("run --volume \"host:guest\" --volume \"host2:guest2\" cmd")); }