public void WhenFilenameIsGiven_CommandLineIsCorrect() { var fixture = new KubectlCreateFixture { Settings = new KubectlCreateSettings { Filename = Path.Combine("C:", "temp", "file.yml") } }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo($"create --filename \"{fixture.Settings.Filename}\"")); }
public void WhenLongerOptionIsGiven_CommandLineIsCorrect() { var fixture = new KubectlCreateFixture { Settings = new KubectlCreateSettings { WindowsLineEndings = true } }; var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo($"create --windows-line-endings")); }