public void WhenNoServiceAreSet_CommandLineIsCorrect() { var fixture = new DockerComposePsFixture { Settings = new DockerComposePsSettings { Filters = new[] { "filter" } }, }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("ps --filter filter")); }
public void WhenQuietIsSet_CommandLineIsCorrect() { var fixture = new DockerComposePsFixture { Settings = new DockerComposePsSettings { Quiet = true }, Services = new string[] { "serviceA", "serviceB", "serviceC" }, }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("ps --quiet serviceA serviceB serviceC")); }
public void WhenMultipleFilterIsSet_CommandLineIsCorrect() { var fixture = new DockerComposePsFixture { Settings = new DockerComposePsSettings { Filters = new[] { "filter1", "filter2" } }, Services = new string[] { "serviceA", "serviceB" }, }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("ps --filter filter1 --filter filter2 serviceA serviceB")); }