public void Exclude_with_Recurse_Wildcards_outputs_r_zero() { var fixture = new SevenZipSettingsFixture(); var sut = new SwitchExcludeArchiveFilename("*.txt", RecurseType.EnableOnlyForWildcardNames); const string expected = "-axr0!*.txt"; var actual = fixture.Parse(b => sut.BuildArguments(ref b)); actual.ShouldBe(expected); }
public void Exclude_without_Recurse_outputs_no_recurse() { var fixture = new SevenZipSettingsFixture(); var sut = new SwitchExcludeArchiveFilename("*.txt"); const string expected = "-ax!*.txt"; var actual = fixture.Parse(b => sut.BuildArguments(ref b)); actual.ShouldBe(expected); }
public void Exclude_with_Recurse_disabled_outputs_r_minus() { var fixture = new SevenZipSettingsFixture(); var sut = new SwitchExcludeArchiveFilename("*.txt", RecurseType.Disable); const string expected = "-axr-!*.txt"; var actual = fixture.Parse(b => sut.BuildArguments(ref b)); actual.ShouldBe(expected); }