Esempio n. 1
0
    public void Exclude_with_Recurse_Wildcards_outputs_r_zero()
    {
        var          fixture  = new SevenZipSettingsFixture();
        var          sut      = new SwitchExcludeFilename("*.txt", RecurseType.EnableOnlyForWildcardNames);
        const string expected = "-xr0!*.txt";

        var actual = fixture.Parse(b => sut.BuildArguments(ref b));

        actual.ShouldBe(expected);
    }
Esempio n. 2
0
    public void Exclude_without_Recurse_outputs_no_recurse()
    {
        var          fixture  = new SevenZipSettingsFixture();
        var          sut      = new SwitchExcludeFilename("*.txt");
        const string expected = "-x!*.txt";

        var actual = fixture.Parse(b => sut.BuildArguments(ref b));

        actual.ShouldBe(expected);
    }
Esempio n. 3
0
    public void Exclude_with_Recurse_disabled_outputs_r_minus()
    {
        var          fixture  = new SevenZipSettingsFixture();
        var          sut      = new SwitchExcludeFilename("*.txt", RecurseType.Disable);
        const string expected = "-xr-!*.txt";

        var actual = fixture.Parse(b => sut.BuildArguments(ref b));

        actual.ShouldBe(expected);
    }