public void Should_Add_IgnoreNotFound_If_All_Option_Not_Set() { // Given var fixture = new OpenshiftDeleterFixture(); fixture.Settings.IgnoreNotFound = true; fixture.Settings.Label = "app=appName"; // When var result = fixture.Run(); // Then result.Args.Should().Be($"delete --selector={fixture.Settings.Label.Quote()} --ignore-not-found"); }
public void Should_Add_ObjectType_And_ObjectName() { // Given var fixture = new OpenshiftDeleterFixture(); fixture.Settings.ObjectType = "pod"; fixture.Settings.ObjectName = "node-1-vsjnm"; // When var result = fixture.Run(); // Then result.Args.Should().Be($"delete {fixture.Settings.ObjectType} {fixture.Settings.ObjectName}"); }